- Changed HTML to support the new fancy ban system
- Added "banned" and "active_ban" bits in models.py
- IP bans are supported now.
This commit is contained in:
some weird guy
2023-08-24 12:20:32 -07:00
parent ca09f3295b
commit e49d856f71
10 changed files with 60 additions and 194 deletions
+5 -1
View File
@@ -142,6 +142,10 @@ class HistoryAdmin(admin.ModelAdmin):
class RoleAdmin(admin.ModelAdmin):
exclude = ('is_static', )
class BanAdmin(admin.ModelAdmin):
# Hide that shit for now, Eventually I plan to get rid of the user_tools_meta thing completely and just show IP addresses for staff like any normal site.
exclude = ('ip_address', )
#class BlockAdmin(admin.ModelAdmin)
admin.site.unregister(Group)
@@ -164,7 +168,7 @@ admin.site.register(models.ProfileHistory, HistoryAdmin)
admin.site.register(models.Post, PostAdmin)
admin.site.register(models.Comment, CommentAdmin)
admin.site.register(models.Ban)
admin.site.register(models.Ban, BanAdmin)
admin.site.register(models.Warning)
if settings.DEBUG: