summaryrefslogtreecommitdiff
path: root/src/meetingtools/apps/cluster/models.py
blob: 9921dd4466421c6d1ad042a4cb3dd4f07f34bc31 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
'''
Created on Feb 3, 2011

@author: leifj
'''

from django.db import models
from django.db.models.fields import CharField, URLField, TextField

class ACCluster(models.Model):
    api_url = URLField()
    url = URLField()
    user = CharField(max_length=128)
    password = CharField(max_length=128)
    name = CharField(max_length=128,blank=True,unique=True)
    domain_match = TextField()
    
    def __unicode__(self):
        return self.url
    
    def make_url(self,path=""):
        return "%s%s" % (self.url,path)