diff options
author | substantialnoninfringinguser <substantialnoninfringinguser@gmail.com> | 2009-05-23 20:37:42 +0100 |
---|---|---|
committer | substantialnoninfringinguser <substantialnoninfringinguser@gmail.com> | 2009-05-23 20:37:42 +0100 |
commit | 470fe5a1d193f5b98ca3ac74aa278668e3c80e6e (patch) | |
tree | b34d4dd261d428ff9a41fa859cc45e3fb68d0a70 | |
parent | 32a7d5e79f248a5cbaf444ac257629db3ca58577 (diff) | |
download | troggle-470fe5a1d193f5b98ca3ac74aa278668e3c80e6e.tar.gz troggle-470fe5a1d193f5b98ca3ac74aa278668e3c80e6e.tar.bz2 troggle-470fe5a1d193f5b98ca3ac74aa278668e3c80e6e.zip |
[svn] Re-enable JSON and XML export actions in admin pages now that troggle is using latest SVN version of Django.
-rw-r--r-- | expo/admin.py | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/expo/admin.py b/expo/admin.py index 247b4b1..e2c2e49 100644 --- a/expo/admin.py +++ b/expo/admin.py @@ -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'])
|