10 lines
296 B
Python
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"] |