From 09d85ed3d3e4911f8aa2baf01fbc2d5f5b64f1bd Mon Sep 17 00:00:00 2001 From: bnewbold Date: Sun, 29 Nov 2009 20:27:55 -0500 Subject: moved more admin stuff to admin.py files --- bn_django/git_wiki/models.py | 6 ------ bn_django/photos/admin.py | 6 ++++++ bn_django/photos/models.py | 7 ------- 3 files changed, 6 insertions(+), 13 deletions(-) create mode 100644 bn_django/photos/admin.py (limited to 'bn_django') diff --git a/bn_django/git_wiki/models.py b/bn_django/git_wiki/models.py index 2fe841f..87bfa55 100644 --- a/bn_django/git_wiki/models.py +++ b/bn_django/git_wiki/models.py @@ -267,9 +267,3 @@ def shortlog(hash=None,tree=None): shortlog.append(logobj) return shortlog -from django.contrib import admin - -admin.site.register(Tree) -admin.site.register(Item) -admin.site.register(Commit) - 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) - -- cgit v1.2.3