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

12795 custom user model (#15005)

* 12795 users.User migration

* 12795 users.User migration

* 12795 review changes

* 12795 fix user model registration

* 12795 fix user model registration

* 12795 update migration

* 12795 update migration

* 12795 update migration

* 12795 add comment to migration db_table

* Tweak import to avoid class name collision

* 12795 add comment for _register_features requirement

---------

Co-authored-by: Jeremy Stretch <jstretch@netboxlabs.com>
This commit is contained in:
Arthur Hanson
2024-02-05 10:24:03 -08:00
committed by GitHub
parent 5d9311eecf
commit 317bef6796
19 changed files with 132 additions and 70 deletions

View File

@ -17,7 +17,7 @@ __all__ = (
class UserBulkEditForm(forms.Form):
pk = forms.ModelMultipleChoiceField(
queryset=NetBoxUser.objects.all(),
queryset=User.objects.all(),
widget=forms.MultipleHiddenInput
)
first_name = forms.CharField(
@ -46,7 +46,7 @@ class UserBulkEditForm(forms.Form):
label=_('Superuser status')
)
model = NetBoxUser
model = User
fieldsets = (
(None, ('first_name', 'last_name', 'is_active', 'is_staff', 'is_superuser')),
)