|
|
|
@ -1,6 +1,6 @@
|
|
|
|
|
import datetime |
|
|
|
|
from django.db import models |
|
|
|
|
from juser.models import Group as UserGroup |
|
|
|
|
from juser.models import UserGroup |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
class IDC(models.Model): |
|
|
|
@ -11,7 +11,7 @@ class IDC(models.Model):
|
|
|
|
|
return self.name |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
class Group(models.Model): |
|
|
|
|
class BisGroup(models.Model): |
|
|
|
|
name = models.CharField(max_length=80, unique=True) |
|
|
|
|
comment = models.CharField(max_length=160, blank=True, null=True) |
|
|
|
|
|
|
|
|
@ -30,7 +30,7 @@ class Asset(models.Model):
|
|
|
|
|
port = models.SmallIntegerField(max_length=5) |
|
|
|
|
idc = models.ForeignKey(IDC) |
|
|
|
|
user_group = models.ManyToManyField(UserGroup) |
|
|
|
|
bis_group = models.ManyToManyField(Group) |
|
|
|
|
bis_group = models.ManyToManyField(BisGroup) |
|
|
|
|
login_type = models.CharField(max_length=1, choices=LOGIN_TYPE_CHOICES, default='L') |
|
|
|
|
username_common = models.CharField(max_length=20, blank=True, null=True) |
|
|
|
|
password_common = models.CharField(max_length=80, blank=True, null=True) |
|
|
|
|