Module ImportFrom alias Import alias ImportFrom alias ImportFrom alias identifier FunctionDef arguments args NameParam NameParam NameParam NameParam defaults NameLoad NameLoad NameLoad NameLoad body Expr Str FunctionDef arguments args NameParam NameParam NameParam defaults body Expr Str Assign NameStore AttributeLoad AttributeLoad NameLoad attr attr If NameLoad body Assign NameStore Call NameLoad NameLoad Assign NameStore NameLoad orelse If NameLoad body Assign NameStore Call NameLoad NameLoad Assign NameStore BinOpSub NameLoad NameLoad Assign NameStore Call NameLoad keyword Str Assign SubscriptStore NameLoad Index Str BinOpMod Str Call AttributeLoad Call NameLoad NameLoad attr Str Str Assign NameStore Call AttributeLoad NameLoad attr NameLoad If NameLoad body Expr Call AttributeLoad NameLoad attr Call NameLoad NameLoad For NameStore NameLoad body Expr Call AttributeLoad NameLoad attr ListComp Call AttributeLoad Call NameLoad Call NameLoad NameLoad NameLoad attr Str Str comprehension NameStore NameLoad Return NameLoad decorator_list If CompareIs NameLoad NameLoad body Assign NameStore Call NameLoad Str Assign AttributeStore NameLoad attr NameLoad Return NameLoad decorator_list
N/A __future__ unicode_literals N/A csv django.http HttpResponse django.utils.translation ugettext_lazy _ export_as_csv_action N/A N/A description fields exclude header N/A None None None True N/A N/A 
    This function returns an export csv action
    'fields' and 'exclude' work like in Django ModelForm
    'header' is whether or not to output the column names as the first row
     export_as_csv N/A N/A modeladmin request queryset N/A N/A N/A 
        Generic csv export admin action.
        based on http://djangosnippets.org/snippets/1697/
         N/A opts N/A N/A modeladmin model _meta N/A fields N/A N/A fieldset N/A set fields N/A field_names fieldset N/A N/A exclude N/A N/A excludeset N/A set exclude N/A field_names N/A field_names excludeset N/A response N/A HttpResponse content_type text/csv N/A N/A response N/A Content-Disposition N/A attachment; filename=%s.csv N/A N/A N/A unicode opts replace . _ N/A writer N/A N/A csv writer response N/A header N/A N/A N/A N/A writer writerow N/A list field_names N/A obj queryset N/A N/A N/A N/A writer writerow N/A N/A N/A N/A unicode N/A getattr obj field encode utf-8 replace N/A field field_names N/A response N/A N/A N/A description None N/A N/A description N/A _ Export selected objects as CSV file N/A N/A export_as_csv short_description description N/A export_as_csv N/A