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-11-10 10:05:53 +01:00
|
|
|
|
2023-10-21 15:18:07 +02:00
|
|
|
# Register your models here.
|
2023-11-10 10:05:53 +01:00
|
|
|
|
|
|
|
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')
|
2023-11-10 10:05:53 +01:00
|
|
|
|
|
|
|
|
|
|
|
admin.site.register(UserProfile, UserProfileAdmin)
|
2024-06-25 22:26:31 +02:00
|
|
|
admin.site.register(SeenPost, SeenPostAdmin)
|