1
0
mirror of https://github.com/netbox-community/netbox.git synced 2024-05-10 07:54:54 +00:00

Fix automatic creation of UserConfig for user created via admin UI

This commit is contained in:
Jeremy Stretch
2020-06-26 14:29:24 -04:00
parent edc65a6a34
commit 2c354c7f86
2 changed files with 4 additions and 3 deletions

View File

@@ -159,6 +159,7 @@ class UserConfig(models.Model):
@receiver(post_save, sender=User)
@receiver(post_save, sender=AdminUser)
def create_userconfig(instance, created, **kwargs):
"""
Automatically create a new UserConfig when a new User is created.