Skip to content
Snippets Groups Projects
Verified Commit eb7cb622 authored by Nik | Klampfradler's avatar Nik | Klampfradler
Browse files

Fix cleaning and saving of parent.

parent 2631ce14
No related branches found
No related tags found
No related merge requests found
......@@ -106,6 +106,12 @@ class TeckidsParent(ldapdb.models.Model, TeckidsLdapMixin):
if not self.cn:
self.cn = "%s %s" % (self.given_name, self.sn)
super(TeckidsParent, self).clean()
def save(self, *args, **kwargs):
self.clean()
super(TeckidsParent, self).save(*args, **kwargs)
class TeckidsGroup(ldapdb.models.Model, TeckidsLdapMixin):
class Meta:
managed = False
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment