Remove the "Admin" model since it's not necessary

This commit is contained in:
Evert Prants 2017-11-16 21:13:13 +02:00
parent 0bded3afc7
commit 70832a685c
Signed by: evert
GPG Key ID: 1688DA83D222D0B5
2 changed files with 1 additions and 5 deletions

View File

@ -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)

View File

@ -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',