Skip to content

Commit

Permalink
Update create_userconfig to receive signals from NetBoxUser model in …
Browse files Browse the repository at this point in the history
…addition to User model.
  • Loading branch information
DanSheps authored and jeremystretch committed Dec 14, 2023
1 parent 5508e12 commit 8a4233a
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions netbox/users/models.py
Original file line number Diff line number Diff line change
Expand Up @@ -218,6 +218,7 @@ def clear(self, path, commit=False):


@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.
Expand Down

0 comments on commit 8a4233a

Please sign in to comment.