Gallery-Archivist/archivist/apps/user/admin.py

15 lines
382 B
Python
Raw Normal View History

2023-10-21 15:18:07 +02:00
from django.contrib import admin
2024-06-25 22:26:31 +02:00
from .models import UserProfile, SeenPost
2023-10-21 15:18:07 +02:00
# Register your models here.
class UserProfileAdmin(admin.ModelAdmin):
list_display = ('user', 'show_mature')
2024-06-25 22:26:31 +02:00
class SeenPostAdmin(admin.ModelAdmin):
list_display = ('user', 'post', 'timestamp')
admin.site.register(UserProfile, UserProfileAdmin)
2024-06-25 22:26:31 +02:00
admin.site.register(SeenPost, SeenPostAdmin)