Module ImportFrom alias ImportFrom alias ImportFrom alias ImportFrom alias alias ImportFrom alias ImportFrom alias ImportFrom alias identifier ImportFrom alias alias alias ImportFrom alias alias alias ImportFrom alias ImportFrom alias ClassDef bases NameLoad body FunctionDef arguments args NameParam defaults body Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr keyword Str keyword Str Assign AttributeStore NameLoad attr Call AttributeLoad AttributeLoad NameLoad attr attr keyword Str keyword Str keyword NameLoad Assign AttributeStore NameLoad attr Call NameLoad NameLoad Assign AttributeStore NameLoad attr Call AttributeLoad AttributeLoad NameLoad attr attr keyword Str keyword Str keyword NameLoad For NameStore AttributeLoad AttributeLoad NameLoad attr attr body Expr Call AttributeLoad AttributeLoad NameLoad attr attr keyword AttributeLoad NameLoad attr keyword NameLoad keyword Num Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr Str Str Str Assign AttributeStore NameLoad attr NameLoad Expr Call AttributeLoad NameLoad attr decorator_list FunctionDef arguments args NameParam defaults body Expr Str With Call AttributeLoad NameLoad attr NameLoad body Expr Call AttributeLoad AttributeLoad NameLoad attr attr keyword Str keyword AttributeLoad AttributeLoad NameLoad attr attr keyword AttributeLoad AttributeLoad NameLoad attr attr decorator_list FunctionDef arguments args NameParam defaults body Expr Str ClassDef bases AttributeLoad NameLoad attr body Expr Str Assign NameStore Call AttributeLoad NameLoad attr keyword Num Assign NameStore Call AttributeLoad NameLoad attr NameLoad decorator_list Expr Call AttributeLoad AttributeLoad AttributeLoad NameLoad attr attr attr Expr Call AttributeLoad AttributeLoad AttributeLoad NameLoad attr attr attr Assign NameStore Call NameLoad NameLoad NameLoad keyword NameLoad keyword NameLoad Assign NameStore Call NameLoad keyword AttributeLoad NameLoad attr Assign NameStore SubscriptLoad AttributeLoad NameLoad attr Index Num Expr Call AttributeLoad NameLoad attr Call NameLoad SubscriptLoad AttributeLoad NameLoad attr Index Str Str Assign NameStore AttributeLoad SubscriptLoad AttributeLoad NameLoad attr Index Str attr Expr Call AttributeLoad NameLoad attr Call NameLoad ListComp CompareIn TupleLoad NameLoad NameLoad NameLoad comprehension NameStore AttributeLoad AttributeLoad NameLoad attr attr Assign NameStore ListComp BinOpMod Str NameLoad comprehension NameStore AttributeLoad Call NameLoad NameLoad attr Expr Call AttributeLoad NameLoad attr Call NameLoad ListComp CompareIn TupleLoad NameLoad NameLoad NameLoad comprehension NameStore NameLoad Assign NameStore ListComp BinOpMod Str NameLoad comprehension NameStore AttributeLoad Call NameLoad NameLoad attr Expr Call AttributeLoad NameLoad attr Call NameLoad ListComp CompareIn TupleLoad NameLoad NameLoad NameLoad comprehension NameStore NameLoad Assign NameStore ListComp BinOpMod Str NameLoad comprehension NameStore AttributeLoad Call NameLoad NameLoad attr Expr Call AttributeLoad NameLoad attr Call NameLoad ListComp CompareIn TupleLoad NameLoad NameLoad NameLoad comprehension NameStore NameLoad Delete SubscriptDel AttributeLoad AttributeLoad AttributeLoad NameLoad attr attr attr Index Str decorator_list FunctionDef arguments args NameParam defaults body Expr Str Expr Call AttributeLoad AttributeLoad NameLoad attr attr keyword Str keyword Str Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr Call NameLoad Str keyword Dict Str AttributeLoad AttributeLoad NameLoad attr attr Expr Call AttributeLoad NameLoad attr NameLoad Str Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr Call NameLoad Str keyword Dict Str AttributeLoad AttributeLoad NameLoad attr attr Expr Call AttributeLoad NameLoad attr NameLoad Str For NameStore Call AttributeLoad AttributeLoad AttributeLoad NameLoad attr attr attr body Expr Call AttributeLoad NameLoad attr NameLoad IfExp AttributeLoad NameLoad attr AttributeLoad NameLoad attr NameLoad decorator_list FunctionDef arguments args NameParam defaults body Expr Str Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr keyword Str keyword Str keyword Str keyword Str Expr Call AttributeLoad AttributeLoad NameLoad attr attr keyword Str keyword Str Assign AttributeStore AttributeLoad NameLoad attr attr NameLoad Expr Call AttributeLoad AttributeLoad NameLoad attr attr Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr Call NameLoad Str keyword Dict Str AttributeLoad AttributeLoad NameLoad attr attr Expr Call AttributeLoad NameLoad attr SubscriptLoad NameLoad Index Str AttributeLoad AttributeLoad AttributeLoad NameLoad attr attr attr Expr Call AttributeLoad NameLoad attr SubscriptLoad NameLoad Index Str BinOpMod Str TupleLoad AttributeLoad AttributeLoad NameLoad attr attr AttributeLoad AttributeLoad AttributeLoad NameLoad attr attr attr decorator_list FunctionDef arguments args NameParam defaults body Expr Str Expr Call AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr Str Call NameLoad AttributeLoad NameLoad attr Str Assign NameStore Dict Str Str Expr Call AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr NameLoad Str Call AttributeLoad NameLoad attr Str Assign NameStore Call AttributeLoad Call AttributeLoad NameLoad attr AttributeLoad AttributeLoad NameLoad attr attr attr Str For NameStore Call AttributeLoad AttributeLoad AttributeLoad NameLoad attr attr attr body Expr Call AttributeLoad NameLoad attr CompareIn Call NameLoad NameLoad NameLoad For TupleStore NameStore NameStore Call NameLoad NameLoad body Assign NameStore Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr NameLoad Expr Call AttributeLoad NameLoad attr NameLoad decorator_list decorator_list ClassDef bases NameLoad body FunctionDef arguments args NameParam defaults body Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr Str Str Str Assign AttributeStore NameLoad attr NameLoad Assign AttributeStore NameLoad attr NameLoad Expr Call AttributeLoad NameLoad attr decorator_list FunctionDef arguments args NameParam defaults body Expr Call AttributeLoad AttributeLoad NameLoad attr attr keyword Str keyword Str Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr keyword Str keyword Str Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr Call NameLoad Str Dict Str Str Str Str Str Str AttributeLoad NameLoad attr Str Expr Call AttributeLoad NameLoad attr NameLoad Call NameLoad Str keyword ListLoad Num Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr Call NameLoad Str keyword ListLoad Num Expr Call AttributeLoad NameLoad attr NameLoad Str Expr Call AttributeLoad NameLoad attr NameLoad Str decorator_list decorator_list
N/A django.contrib.auth.models User django.contrib.contenttypes.models ContentType django.core.urlresolvers reverse django.db IntegrityError models django.forms.models inlineformset_factory django.test TestCase data_exports.templatetags getter_tags ttags data_exports.models Format Export Column data_exports.forms ColumnForm ColumnFormSet get_choices inspect_model InspectModel data_exports.compat text_type ExportTest N/A TestCase N/A setUp N/A N/A self N/A N/A N/A ct N/A N/A N/A ContentType objects get app_label data_exports model export N/A N/A self empty_export N/A N/A N/A Export objects create name test empty export slug test-empty-export model ct N/A N/A self im N/A InspectModel Export N/A N/A self export N/A N/A N/A Export objects create name test export slug test-export model ct N/A f N/A N/A self im items N/A N/A N/A N/A N/A Column objects create export N/A self export column f order 0 N/A user N/A N/A N/A User objects create_user admin admin@admin.com admin N/A N/A user is_superuser True N/A N/A N/A user save N/A test_slug N/A N/A self N/A N/A N/A Make sure the slug is unique. N/A N/A N/A self assertRaises IntegrityError N/A N/A N/A N/A N/A Export objects create name foo slug N/A N/A self empty_export slug model N/A N/A self empty_export model N/A test_column_choices N/A N/A self N/A N/A N/A Choices computed for the exported model

        When using the ColumnFormSet and the ColumnForm, all the accessible
        items (fields, relations, methods, attributes...) from the exported
        model are present in the "column" form field choices

         OneToOneToExport N/A N/A models Model N/A N/A Fake model.

            Make sure that get_choices works with
            SingleRelatedObjectDescriptor, as explained in ticket #4.

             N/A name N/A N/A models CharField max_length 50 N/A o2o N/A N/A models OneToOneField Export N/A N/A N/A N/A N/A N/A self empty_export _meta _fill_related_objects_cache N/A N/A N/A N/A N/A self empty_export _meta init_name_map N/A ColumnInlineFormSet N/A inlineformset_factory Export Column form ColumnForm formset ColumnFormSet N/A formset N/A ColumnInlineFormSet instance N/A self empty_export N/A form N/A N/A formset forms N/A 0 N/A N/A N/A self assertTrue N/A hasattr N/A N/A form fields N/A column choices N/A choices N/A N/A N/A form fields N/A column choices N/A N/A N/A self assertTrue N/A all N/A N/A N/A i i choices N/A i N/A N/A self im items N/A im_format N/A N/A export_format.%s i N/A i N/A N/A InspectModel Format items N/A N/A N/A self assertTrue N/A all N/A N/A N/A i i choices N/A i im_format N/A im_ct N/A N/A model.%s i N/A i N/A N/A InspectModel ContentType items N/A N/A N/A self assertTrue N/A all N/A N/A N/A i i choices N/A i im_ct N/A im_o2o N/A N/A onetoonetoexport.%s i N/A i N/A N/A InspectModel OneToOneToExport items N/A N/A N/A self assertTrue N/A all N/A N/A N/A i i choices N/A i im_o2o N/A N/A N/A N/A N/A self empty_export _meta _name_map N/A onetoonetoexport N/A test_export_without_format N/A N/A self N/A N/A N/A Export without a format renders to a simple template N/A N/A N/A N/A self client login username admin password admin N/A resp N/A N/A N/A self client get N/A reverse data_exports:export_view kwargs N/A slug N/A N/A self empty_export slug N/A N/A N/A self assertContains resp No columns where defined N/A resp N/A N/A N/A self client get N/A reverse data_exports:export_view kwargs N/A slug N/A N/A self export slug N/A N/A N/A self assertNotContains resp No columns where defined N/A c N/A N/A N/A N/A self export column_set all N/A N/A N/A N/A self assertContains resp N/A N/A c label N/A c label c N/A test_export_with_format N/A N/A self N/A N/A N/A Export with a format gives a file download N/A csv_format N/A N/A N/A Format objects create name naive csv file_ext csv mime text/csv template data_exports/export_detail_csv.html N/A N/A N/A N/A self client login username admin password admin N/A N/A N/A self export export_format csv_format N/A N/A N/A N/A self export save N/A resp N/A N/A N/A self client get N/A reverse data_exports:export_view kwargs N/A slug N/A N/A self export slug N/A N/A N/A self assertEqual N/A resp N/A Content-Type N/A N/A N/A self export export_format mime N/A N/A N/A self assertEqual N/A resp N/A Content-Disposition N/A attachment; filename=%s.%s N/A N/A N/A self export slug N/A N/A N/A self export export_format file_ext N/A test_export_templatetag N/A N/A self N/A N/A N/A Templatetags provided for convenience N/A N/A N/A self assertEqual N/A N/A ttags getattribute N/A self export model N/A getattr N/A self export model N/A d N/A foo bar N/A N/A N/A self assertEqual N/A N/A ttags getvalue d foo N/A N/A d get foo N/A column_list N/A N/A N/A N/A ttags nice_display N/A N/A self export column_set split ,  N/A c N/A N/A N/A N/A self export column_set all N/A N/A N/A N/A self assertTrue N/A N/A text_type c column_list N/A N/A c name N/A get_choices Export N/A N/A e N/A N/A ttags getattribute N/A self export c N/A N/A N/A ttags nice_display e N/A N/A AdminTest N/A TestCase N/A setUp N/A N/A self N/A N/A N/A user N/A N/A N/A User objects create_user admin admin@admin.com admin N/A N/A user is_staff True N/A N/A user is_superuser True N/A N/A N/A user save N/A test_create_export N/A N/A self N/A N/A N/A N/A N/A N/A self client login username admin password admin N/A ct N/A N/A N/A ContentType objects get app_label data_exports model export N/A resp N/A N/A N/A self client post N/A reverse admin:data_exports_export_add N/A name slug model _save test export test-export N/A ct pk Save N/A N/A N/A self assertRedirects resp N/A reverse admin:data_exports_export_change args N/A 1 N/A resp N/A N/A N/A self client get N/A reverse admin:data_exports_export_change args N/A 1 N/A N/A N/A self assertContains resp name="export_format" N/A N/A N/A self assertNotContains resp name="model" N/A N/A