1
0
mirror of https://gitlab.crans.org/bde/nk20 synced 2024-12-23 07:52:23 +00:00

Log aliases in a proper way

This commit is contained in:
Alexandre Iooss 2019-07-17 13:03:10 +02:00
parent 3a6d39a53d
commit 849bb71d5d
No known key found for this signature in database
GPG Key ID: 6C79278F3FCDCC02

View File

@ -125,6 +125,9 @@ class Alias(models.Model):
verbose_name = _("alias")
verbose_name_plural = _("aliases")
def __str__(self):
return self.name
@receiver(post_save, sender=settings.AUTH_USER_MODEL)
def save_user_note(instance, created, **_kwargs):