Remove the "Admin" model since it's not necessary
This commit is contained in:
parent
0bded3afc7
commit
70832a685c
@ -13,7 +13,6 @@ class SpecialUserAdmin(UserAdmin):
|
||||
# Register your models here.
|
||||
admin.site.register(Show)
|
||||
admin.site.register(User, SpecialUserAdmin)
|
||||
admin.site.register(Admin)
|
||||
admin.site.register(Ban)
|
||||
admin.site.register(ShowModerator)
|
||||
admin.site.register(Report)
|
||||
|
@ -93,9 +93,6 @@ class User(AbstractUser):
|
||||
through='Watch'
|
||||
)
|
||||
|
||||
class Admin(User):
|
||||
pass
|
||||
|
||||
class Ban(TimestampedModel):
|
||||
user = models.OneToOneField(
|
||||
User,
|
||||
@ -104,7 +101,7 @@ class Ban(TimestampedModel):
|
||||
verbose_name="Banned User"
|
||||
)
|
||||
admin = models.ForeignKey(
|
||||
Admin,
|
||||
User,
|
||||
on_delete=models.SET_NULL,
|
||||
null=True,
|
||||
help_text='The admin which banned this user',
|
||||
|
Reference in New Issue
Block a user