bmihelac/django-import-export — pull request #21 by tonimichel (2013-03-25 19:54:03+00:00)
Title: Take _meta.fields ordering into account when _meta.export_order is not set.

Hey Bojan, first of all thanks for this awesome app. Great work!

I had to add a custom field to my resource to provide a dehydrate function which returns some fancy stuff which is not on the model itself. I specified the fields attribute in my Meta class. The ordering worked fine, except the custom field, which was prepended as first item although it was the last in my Meta.fields definition. Then I noticed that there is an export_order option which works fine. But at a quick look at the code I decided to just add one additional OR statement in the get_export_order function. I would appreciate if you accept this pull request.

Cheers from Stuttgart, Germany
- Toni