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

15 lines
No EOL
382 B
Python

from django.contrib import admin
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)