summaryrefslogtreecommitdiffstats
path: root/core/admin.py
diff options
context:
space:
mode:
authorgoatchurch <goatchurch@ubuntu.clocksoft.dom>2009-08-23 23:29:05 +0100
committergoatchurch <goatchurch@ubuntu.clocksoft.dom>2009-08-23 23:29:05 +0100
commit0ea70273feee82bfeb25aeae65bdbbec9cf47743 (patch)
tree7614c8cbbb9d911e9a3b8d96a274fbc916c02c46 /core/admin.py
parentc66b5e2dadcc7a4b501b479c30f183c3bf81af42 (diff)
downloadtroggle-0ea70273feee82bfeb25aeae65bdbbec9cf47743.tar.gz
troggle-0ea70273feee82bfeb25aeae65bdbbec9cf47743.tar.bz2
troggle-0ea70273feee82bfeb25aeae65bdbbec9cf47743.zip
quick hack to make work in django1.0 Photo to DPhoto
Diffstat (limited to 'core/admin.py')
-rw-r--r--core/admin.py8
1 files changed, 4 insertions, 4 deletions
diff --git a/core/admin.py b/core/admin.py
index 88bd68e..87c812a 100644
--- a/core/admin.py
+++ b/core/admin.py
@@ -44,7 +44,7 @@ class QMsFoundInline(admin.TabularInline):
extra=1
class PhotoInline(admin.TabularInline):
- model = Photo
+ model = DPhoto
exclude = ['is_mugshot' ]
extra = 1
@@ -104,7 +104,7 @@ class CaveAdmin(TroggleModelAdmin):
class EntranceAdmin(TroggleModelAdmin):
search_fields = ('caveandentrance__cave__kataster_number',)
-admin.site.register(Photo)
+admin.site.register(DPhoto)
admin.site.register(Cave, CaveAdmin)
admin.site.register(Area)
#admin.site.register(OtherCaveName)
@@ -136,5 +136,5 @@ def export_as_xml(modeladmin, request, queryset):
serializers.serialize("xml", queryset, stream=response)
return response
-admin.site.add_action(export_as_xml)
-admin.site.add_action(export_as_json) \ No newline at end of file
+#admin.site.add_action(export_as_xml)
+#admin.site.add_action(export_as_json) \ No newline at end of file