Skip to content

Commit 8a4233a

Browse files
DanShepsjeremystretch
authored andcommitted
Update create_userconfig to receive signals from NetBoxUser model in addition to User model.
1 parent 5508e12 commit 8a4233a

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

netbox/users/models.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -218,6 +218,7 @@ def clear(self, path, commit=False):
218218

219219

220220
@receiver(post_save, sender=User)
221+
@receiver(post_save, sender=NetBoxUser)
221222
def create_userconfig(instance, created, raw=False, **kwargs):
222223
"""
223224
Automatically create a new UserConfig when a new User is created. Skip this if importing a user from a fixture.

0 commit comments

Comments
 (0)