Add: SeenPost model to admin page
This commit is contained in:
parent
b58d7ff749
commit
4e0ab1ee08
1 changed files with 5 additions and 1 deletions
|
@ -1,11 +1,15 @@
|
||||||
from django.contrib import admin
|
from django.contrib import admin
|
||||||
|
|
||||||
from .models import UserProfile
|
from .models import UserProfile, SeenPost
|
||||||
|
|
||||||
# Register your models here.
|
# Register your models here.
|
||||||
|
|
||||||
class UserProfileAdmin(admin.ModelAdmin):
|
class UserProfileAdmin(admin.ModelAdmin):
|
||||||
list_display = ('user', 'show_mature')
|
list_display = ('user', 'show_mature')
|
||||||
|
|
||||||
|
class SeenPostAdmin(admin.ModelAdmin):
|
||||||
|
list_display = ('user', 'post', 'timestamp')
|
||||||
|
|
||||||
|
|
||||||
admin.site.register(UserProfile, UserProfileAdmin)
|
admin.site.register(UserProfile, UserProfileAdmin)
|
||||||
|
admin.site.register(SeenPost, SeenPostAdmin)
|
Loading…
Reference in a new issue