mirror of
https://github.com/nikdoof/vapemap.git
synced 2025-12-14 14:52:16 +00:00
* Add better admin interface for FlaggedObject * Export totals via context processors * Update base template to show this data to admins.
12 lines
338 B
Python
12 lines
338 B
Python
from django.contrib import admin
|
|
from moderation.models import FlagType, FlaggedObject
|
|
|
|
|
|
class FlaggedObjectModelAdmin(admin.ModelAdmin):
|
|
list_display = ['generic_obj', 'user', 'status', 'note']
|
|
list_filter = ['status']
|
|
|
|
|
|
admin.site.register(FlagType, admin.ModelAdmin)
|
|
admin.site.register(FlaggedObject, FlaggedObjectModelAdmin)
|