mirror of
https://github.com/nikdoof/test-auth.git
synced 2025-12-14 23:02:19 +00:00
Add a "Managed" type which will not be requestable
This commit is contained in:
@@ -16,6 +16,11 @@ class GroupInformation(models.Model):
|
||||
|
||||
description = models.TextField()
|
||||
|
||||
def save(self):
|
||||
if self.group and (self.group.eveplayercorporation_set.count() or self.group.eveplayeralliance_set.count()):
|
||||
self.type = GROUP_TYPE_MANAGED
|
||||
models.Model.save(self)
|
||||
|
||||
@staticmethod
|
||||
def create_group(sender, instance, created, **kwargs):
|
||||
if created:
|
||||
|
||||
Reference in New Issue
Block a user