summaryrefslogtreecommitdiff
path: root/fotos/admin.py
diff options
context:
space:
mode:
authorJoaquín Aguirrezabalaga <kinote@kinote.org>2014-01-03 01:06:22 +0100
committerJoaquín Aguirrezabalaga <kinote@kinote.org>2014-01-03 01:06:40 +0100
commitf05c5e2d8a705df1c94b63a978267b291c893bbb (patch)
treea8bd95e9cc2c0bd48be57893ccc4ddec63152d29 /fotos/admin.py
parent802a74102b9073e961ef1d7a487f99b962d76512 (diff)
downloadelgarito-master.tar.gz
elgarito-master.zip
django 1.6HEADmaster
Diffstat (limited to 'fotos/admin.py')
-rw-r--r--fotos/admin.py4
1 files changed, 3 insertions, 1 deletions
diff --git a/fotos/admin.py b/fotos/admin.py
index 8a5f94a..f5cc4cc 100644
--- a/fotos/admin.py
+++ b/fotos/admin.py
@@ -1,12 +1,14 @@
# vim: set fileencoding=utf-8 ts=4 shiftwidth=4 softtabstop=4 expandtab:
from django.contrib import admin
-from elgarito.fotos.models import Album, Foto
+from fotos.models import Album, Foto
+
class AlbumAdmin(admin.ModelAdmin):
list_display = ('nombre', 'autor', 'created_on')
admin.site.register(Album, AlbumAdmin)
+
class FotoAdmin(admin.ModelAdmin):
list_display = ('nombre', 'album', 'autor', 'created_on')