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.
|
# Register your models here.
|
||||||
admin.site.register(Show)
|
admin.site.register(Show)
|
||||||
admin.site.register(User, SpecialUserAdmin)
|
admin.site.register(User, SpecialUserAdmin)
|
||||||
admin.site.register(Admin)
|
|
||||||
admin.site.register(Ban)
|
admin.site.register(Ban)
|
||||||
admin.site.register(ShowModerator)
|
admin.site.register(ShowModerator)
|
||||||
admin.site.register(Report)
|
admin.site.register(Report)
|
||||||
|
@ -93,9 +93,6 @@ class User(AbstractUser):
|
|||||||
through='Watch'
|
through='Watch'
|
||||||
)
|
)
|
||||||
|
|
||||||
class Admin(User):
|
|
||||||
pass
|
|
||||||
|
|
||||||
class Ban(TimestampedModel):
|
class Ban(TimestampedModel):
|
||||||
user = models.OneToOneField(
|
user = models.OneToOneField(
|
||||||
User,
|
User,
|
||||||
@ -104,7 +101,7 @@ class Ban(TimestampedModel):
|
|||||||
verbose_name="Banned User"
|
verbose_name="Banned User"
|
||||||
)
|
)
|
||||||
admin = models.ForeignKey(
|
admin = models.ForeignKey(
|
||||||
Admin,
|
User,
|
||||||
on_delete=models.SET_NULL,
|
on_delete=models.SET_NULL,
|
||||||
null=True,
|
null=True,
|
||||||
help_text='The admin which banned this user',
|
help_text='The admin which banned this user',
|
||||||
|
Reference in New Issue
Block a user