|
|
@ -242,7 +242,7 @@ class SystemUser(models.Model):
|
|
|
|
|
|
|
|
|
|
|
|
class AssetGroup(models.Model):
|
|
|
|
class AssetGroup(models.Model):
|
|
|
|
name = models.CharField(max_length=64, unique=True, verbose_name=_('Name'))
|
|
|
|
name = models.CharField(max_length=64, unique=True, verbose_name=_('Name'))
|
|
|
|
system_users = models.ManyToManyField(SystemUser, related_name='system_users', blank=True)
|
|
|
|
system_users = models.ManyToManyField(SystemUser, related_name='asset_groups', blank=True)
|
|
|
|
created_by = models.CharField(max_length=32, blank=True, verbose_name=_('Created by'))
|
|
|
|
created_by = models.CharField(max_length=32, blank=True, verbose_name=_('Created by'))
|
|
|
|
date_created = models.DateTimeField(auto_now=True, null=True, verbose_name=_('Date added'))
|
|
|
|
date_created = models.DateTimeField(auto_now=True, null=True, verbose_name=_('Date added'))
|
|
|
|
comment = models.TextField(blank=True, verbose_name=_('Comment'))
|
|
|
|
comment = models.TextField(blank=True, verbose_name=_('Comment'))
|
|
|
|