feat: MVP-скелет площадки (Django + MySQL/SQLite, модели по ТЗ §4, базовые страницы)
This commit is contained in:
1 parent
e5f312a00f
commit
8218a568ce
67 files changed
+1929
No files matched your search
@@ -0,0 +1,18 @@
|
||||
from django.contrib import admin
|
||||
|
||||
from .models import AuditLog, ModerationRequest
|
||||
|
||||
|
||||
@admin.register(ModerationRequest)
|
||||
class ModerationRequestAdmin(admin.ModelAdmin):
|
||||
list_display = ('content_type', 'object_id', 'decision', 'moderator', 'created_at', 'decided_at')
|
||||
list_filter = ('decision', 'content_type')
|
||||
search_fields = ('comment',)
|
||||
|
||||
|
||||
@admin.register(AuditLog)
|
||||
class AuditLogAdmin(admin.ModelAdmin):
|
||||
list_display = ('created_at', 'user', 'action', 'object_repr')
|
||||
list_filter = ('action',)
|
||||
search_fields = ('action', 'object_repr')
|
||||
readonly_fields = ('created_at',)
|
||||
Reference in new issue
Block a user