aboutsummaryrefslogtreecommitdiffstats
path: root/bn_django/photos
diff options
context:
space:
mode:
authorbnewbold <bnewbold@ziggy.(none)>2009-11-29 20:27:55 -0500
committerbnewbold <bnewbold@ziggy.(none)>2009-11-29 20:27:55 -0500
commit09d85ed3d3e4911f8aa2baf01fbc2d5f5b64f1bd (patch)
tree94131923d0a07a6e1a9c2cdd9608af4020ef94ac /bn_django/photos
parenta4ff21b266a3ec922dde31a931c8dd784099e921 (diff)
downloadbnewnet-09d85ed3d3e4911f8aa2baf01fbc2d5f5b64f1bd.tar.gz
bnewnet-09d85ed3d3e4911f8aa2baf01fbc2d5f5b64f1bd.zip
moved more admin stuff to admin.py files
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)
-