diff options
-rw-r--r-- | bn_django/git_wiki/models.py | 6 | ||||
-rw-r--r-- | bn_django/photos/admin.py | 6 | ||||
-rw-r--r-- | bn_django/photos/models.py | 7 |
3 files changed, 6 insertions, 13 deletions
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) - |