[svn] Re-enable JSON and XML export actions in admin pages now that troggle is using latest SVN version of Django.

This commit is contained in:
substantialnoninfringinguser 2009-05-23 20:37:42 +01:00
parent 32a7d5e79f
commit 470fe5a1d1

View File

@ -113,10 +113,9 @@ def export_as_python(modeladmin, request, queryset):
serializers.serialize("json", queryset, stream=response)
return response
#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)
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'])