mirror of
https://github.com/netbox-community/netbox.git
synced 2025-07-23 04:22:01 -06:00
Update create_userconfig to receive signals from NetBoxUser model in addition to User model.
This commit is contained in:
parent
5508e125ba
commit
8a4233aca1
@ -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.
|
||||
|
Loading…
Reference in New Issue
Block a user