blob: 13b4aaeb1a5f18646a1e613d0d17021c10fec448 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
|
'''
Created on Feb 3, 2011
@author: leifj
'''
from django.db import models
from django.db.models.fields import CharField, URLField, TextField, IntegerField
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)
default_template_sco_id = IntegerField(blank=True,unique=True)
domain_match = TextField()
def __unicode__(self):
return self.url
def make_url(self,path=""):
return "%s%s" % (self.url,path)
|