Skip to content

Commit

Permalink
Remove obsolete AdminGroup and AdminUser models (#12589)
Browse files Browse the repository at this point in the history
  • Loading branch information
jeremystretch committed Jul 31, 2023
1 parent b7a9649 commit 34a9605
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 50 deletions.
30 changes: 0 additions & 30 deletions netbox/users/migrations/0001_squashed_0011.py
Original file line number Diff line number Diff line change
Expand Up @@ -31,36 +31,6 @@ class Migration(migrations.Migration):
]

operations = [
migrations.CreateModel(
name='AdminGroup',
fields=[
],
options={
'verbose_name': 'Group',
'proxy': True,
'indexes': [],
'constraints': [],
},
bases=('auth.group',),
managers=[
('objects', django.contrib.auth.models.GroupManager()),
],
),
migrations.CreateModel(
name='AdminUser',
fields=[
],
options={
'verbose_name': 'User',
'proxy': True,
'indexes': [],
'constraints': [],
},
bases=('auth.user',),
managers=[
('objects', django.contrib.auth.models.UserManager()),
],
),
migrations.CreateModel(
name='UserConfig',
fields=[
Expand Down
21 changes: 1 addition & 20 deletions netbox/users/models.py
Original file line number Diff line number Diff line change
Expand Up @@ -30,28 +30,9 @@


#
# Proxy models for admin
# Proxies for Django's User and Group models
#


class AdminGroup(Group):
"""
Proxy contrib.auth.models.Group for the admin UI
"""
class Meta:
verbose_name = _('Group')
proxy = True


class AdminUser(User):
"""
Proxy contrib.auth.models.User for the admin UI
"""
class Meta:
verbose_name = _('User')
proxy = True


class NetBoxUserManager(UserManager.from_queryset(RestrictedQuerySet)):
pass

Expand Down

0 comments on commit 34a9605

Please sign in to comment.