-
Notifications
You must be signed in to change notification settings - Fork 12
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
AttributeError: 'SingleRelatedObjectDescriptor' object has no attribute 'field' #1
Comments
Thanks for the report, i'll look into that asap! |
With Django==1.4 AttributeError: 'ExportAdmin' object has no attribute 'inline_instances' TracebackFile "virtualenv/lib/python2.6/site-packages/django/contrib/admin/options.py", line 1063, in change_view File "virtualenv/lib/python2.6/site-packages/data_exports/admin.py", line 34, in get_formsets |
@ppo - fixed this in the pull request if you're still interested. |
fixed by @pielgrzym pull request #2 |
Thanks, I'll give it another try :-) |
After clicking on "Save" while creating a new export on model E (see below).
Traceback
File "virtualenv/lib/python2.6/site-packages/data_exports/forms.py", line 41, in add_fields
choices = get_choices(model)
>>> model = <E>
File "virtualenv/lib/python2.6/site-packages/data_exports/forms.py", line 58, in get_choices
choices += get_choices(related_model, prefixes=new_prefixes)
>>> model = <D>
File "virtualenv/lib/python2.6/site-packages/data_exports/forms.py", line 58, in get_choices
choices += get_choices(related_model, prefixes=new_prefixes)
>>> model = <C>
File "virtualenv/lib/python2.6/site-packages/data_exports/forms.py", line 58, in get_choices
choices += get_choices(related_model, prefixes=new_prefixes)
>>> model = <A>
File "virtualenv/lib/python2.6/site-packages/data_exports/forms.py", line 54, in get_choices
related_model = getattr(model, f).field.rel.to
>>> model = <A>
Classes
Environment
Python 2.6.5
Django==1.3.1
django-data-exports==0.2
django-inspect-model==0.4
The text was updated successfully, but these errors were encountered: