aboutsummaryrefslogtreecommitdiffstats
path: root/bn_django/photos
diff options
context:
space:
mode:
Diffstat (limited to 'bn_django/photos')
-rw-r--r--bn_django/photos/admin.py6
-rw-r--r--bn_django/photos/models.py7
2 files changed, 6 insertions, 7 deletions
diff --git a/bn_django/photos/admin.py b/bn_django/photos/admin.py
new file mode 100644
index 0000000..a32ae7e
--- /dev/null
+++ b/bn_django/photos/admin.py
@@ -0,0 +1,6 @@
+from bn_django.photos.models import Photo, Gallery
+from django.contrib import admin
+
+admin.site.register(Photo)
+admin.site.register(Gallery)
+
diff --git a/bn_django/photos/models.py b/bn_django/photos/models.py
index 8ca4f13..dcef1fc 100644
--- a/bn_django/photos/models.py
+++ b/bn_django/photos/models.py
@@ -288,10 +288,3 @@ signals.pre_delete.connect(delete_thumbnails, sender=Photo)
# sender=Photo)
#dispatcher.connect(delete_thumbnails, signal=signals.pre_delete,
# sender=Photo)
-
-
-from django.contrib import admin
-
-admin.site.register(Photo)
-admin.site.register(Gallery)
-