mirror of
https://github.com/jumpserver/jumpserver.git
synced 2025-10-22 00:09:14 +00:00
mapping model
This commit is contained in:
BIN
juser/__init__.pyc
Normal file
BIN
juser/__init__.pyc
Normal file
Binary file not shown.
BIN
juser/admin.pyc
Normal file
BIN
juser/admin.pyc
Normal file
Binary file not shown.
@@ -2,7 +2,6 @@
|
||||
|
||||
from django.db import models
|
||||
|
||||
from jasset.models import Asset, AssetGroup
|
||||
|
||||
|
||||
class UserGroup(models.Model):
|
||||
@@ -10,8 +9,8 @@ class UserGroup(models.Model):
|
||||
# assets = models.TextField(max_length=1000, verbose_name="Assets", default='')
|
||||
# asset_groups = models.CharField(max_length=1000, verbose_name="Asset Groups", default='')
|
||||
comment = models.CharField(max_length=160, blank=True, null=True)
|
||||
asset = models.ManyToManyField(Asset)
|
||||
asset_group = models.ManyToManyField(AssetGroup)
|
||||
#asset = models.ManyToManyField(Asset)
|
||||
#asset_group = models.ManyToManyField(AssetGroup)
|
||||
|
||||
def __unicode__(self):
|
||||
return self.name
|
||||
@@ -42,8 +41,7 @@ class User(models.Model):
|
||||
is_active = models.BooleanField(default=True)
|
||||
last_login = models.DateTimeField(null=True)
|
||||
date_joined = models.DateTimeField(null=True)
|
||||
asset = models.ManyToManyField(Asset)
|
||||
asset_group = models.ManyToManyField(AssetGroup)
|
||||
|
||||
|
||||
def __unicode__(self):
|
||||
return self.username
|
||||
|
BIN
juser/models.pyc
Normal file
BIN
juser/models.pyc
Normal file
Binary file not shown.
BIN
juser/urls.pyc
Normal file
BIN
juser/urls.pyc
Normal file
Binary file not shown.
BIN
juser/user_api.pyc
Normal file
BIN
juser/user_api.pyc
Normal file
Binary file not shown.
BIN
juser/views.pyc
Normal file
BIN
juser/views.pyc
Normal file
Binary file not shown.
Reference in New Issue
Block a user