Add: SeenPost model to admin page

This commit is contained in:
Aroy-Art 2024-06-25 22:26:31 +02:00
parent b58d7ff749
commit 4e0ab1ee08
Signed by: Aroy
GPG key ID: DB9689E9391DD156

View file

@ -1,11 +1,15 @@
from django.contrib import admin
from .models import UserProfile
from .models import UserProfile, SeenPost
# Register your models here.
class UserProfileAdmin(admin.ModelAdmin):
list_display = ('user', 'show_mature')
class SeenPostAdmin(admin.ModelAdmin):
list_display = ('user', 'post', 'timestamp')
admin.site.register(UserProfile, UserProfileAdmin)
admin.site.register(SeenPost, SeenPostAdmin)