From 7769a35f076211ec13a2b798fd8c84569e619984 Mon Sep 17 00:00:00 2001 From: substantialnoninfringinguser Date: Fri, 22 May 2009 02:54:09 +0100 Subject: [svn] - Remove feature (admin JSON / XML downloads) which won't work until we have django 1.1 installed (works on my SVN version, but not on seagrass debian package version). - Copy feincms media to project so that we don't have to serve it separately. Also useful because we may want to customize it. --- expo/admin.py | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'expo/admin.py') diff --git a/expo/admin.py b/expo/admin.py index 9f804c2..247b4b1 100644 --- a/expo/admin.py +++ b/expo/admin.py @@ -101,22 +101,22 @@ def export_as_json(modeladmin, request, queryset): serializers.serialize("json", queryset, stream=response) return response -admin.site.add_action(export_as_json) def export_as_xml(modeladmin, request, queryset): response = HttpResponse(mimetype="text/xml") response['Content-Disposition'] = 'attachment; filename=troggle_output.xml' return response -admin.site.add_action(export_as_xml) - def export_as_python(modeladmin, request, queryset): response = HttpResponse(mimetype="text/python") response['Content-Disposition'] = 'attachment; filename=troggle_output.py' serializers.serialize("json", queryset, stream=response) return response -admin.site.add_action(export_as_python) +#These require django newer than 1.0 (SVN version) so we'll have to wait. +#admin.site.add_action(export_as_xml) +#admin.site.add_action(export_as_json) +#admin.site.add_action(export_as_python) try: mptt.register(Subcave, order_insertion_by=['name']) -- cgit v1.2.3