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

Update create_userconfig to receive signals from NetBoxUser model in addition to User model.

This commit is contained in:
Daniel Sheppard
2023-12-14 08:08:09 -06:00
committed by Jeremy Stretch
parent 5508e125ba
commit 8a4233aca1

View File

@@ -218,6 +218,7 @@ class UserConfig(models.Model):
@receiver(post_save, sender=User)
@receiver(post_save, sender=NetBoxUser)
def create_userconfig(instance, created, raw=False, **kwargs):
"""
Automatically create a new UserConfig when a new User is created. Skip this if importing a user from a fixture.