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 | 02db5a91700dda333d673821ed12a5eb77512495 (patch) | |
tree | ec2bfcfc76a24b1b6be534dc23dc7c09f003cc8d /expo/admin.py | |
parent | 93a68ff43e13eae9284308d2a77f03e5417bf959 (diff) | |
download | troggle-02db5a91700dda333d673821ed12a5eb77512495.tar.gz troggle-02db5a91700dda333d673821ed12a5eb77512495.tar.bz2 troggle-02db5a91700dda333d673821ed12a5eb77512495.zip |
[svn] Re-enable JSON and XML export actions in admin pages now that troggle is using latest SVN version of Django.
Diffstat (limited to 'expo/admin.py')
-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'])
|