New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Column names with spaces #36
Comments
Hi, it looks like we should use
I have to test this, but would appreciate if you can test that this work for your case. regards |
That was my initial thought, too, but attribute_name might be blank, and that led me down the road of testing for a value. Given that I wasn't too familiar with the internals of import_export, the replace seemed an easier fix at the time. Also, the use case for me is generating an export report (of sorts) for non-technical users, and being able to specify the column name in a very verbose way (i.e. more descriptive than what I name my attributes) is a requirement. |
@pwr905 I am almost sure that |
In https://github.com/bmihelac/django-import-export/compare/fix-36-use-field-name-for-dehydration branch is a change that uses field_name for dehydrating fields. field_name is assigned when Example of use is in tests: Does this solve issue stated above? |
Sorry for the delay, been really busy. Will test it out in the next few days and let you know. |
Can't use column names with spaces - at least, as far as I could tell.
If this is indeed the case, and I'm not just being stupid, the fix is in resources.py at line 299.
becomes
Current use cases should be unaffected by that change.
The text was updated successfully, but these errors were encountered: