mirror of
https://github.com/nikdoof/test-auth.git
synced 2025-12-14 06:42:16 +00:00
Allow keywords through to the parent save
This commit is contained in:
@@ -16,10 +16,10 @@ class GroupInformation(models.Model):
|
|||||||
|
|
||||||
description = models.TextField(help_text="Description of the group and its permissions", blank=True)
|
description = models.TextField(help_text="Description of the group and its permissions", blank=True)
|
||||||
|
|
||||||
def save(self):
|
def save(self, *args, **kwargs):
|
||||||
if self.group and (self.group.eveplayercorporation_set.count() or self.group.eveplayeralliance_set.count()):
|
if self.group and (self.group.eveplayercorporation_set.count() or self.group.eveplayeralliance_set.count()):
|
||||||
self.type = GROUP_TYPE_MANAGED
|
self.type = GROUP_TYPE_MANAGED
|
||||||
models.Model.save(self)
|
models.Model.save(*args, **kwargs)
|
||||||
|
|
||||||
@staticmethod
|
@staticmethod
|
||||||
def create_group(sender, instance, created, **kwargs):
|
def create_group(sender, instance, created, **kwargs):
|
||||||
|
|||||||
Reference in New Issue
Block a user