JS-P04/app/admin.py
Kacper Donat 3a649df550 Whole app
2020-06-08 22:46:01 +02:00

10 lines
296 B
Python

from django.contrib import admin
from .models import Photo, Album
@admin.register(Photo)
class PhotoAdmin(admin.ModelAdmin):
list_display = ["title", "user", "created_at", "album"]
@admin.register(Album)
class AlbumAdmin(admin.ModelAdmin):
list_display = ["title", "user", "created_at"]