#9498: generic inline formsets: object has no attribute 'fk'
-----------------------------------+----------------------------------------
Reporter: fredbartle | Owner: brosner
Status: assigned | Milestone:
Component: Contrib apps | Version: SVN
Resolution: | Keywords: generic inline formsets
Stage: Accepted | Has_patch: 1
Needs_docs: 0 | Needs_tests: 1
Needs_better_patch: 0 |
-----------------------------------+----------------------------------------
Comment (by [EMAIL PROTECTED]):
applying the patch helped, but directly showed a new bug:
http://nopaste.com/p/aJeKlSyvj
looking into contrib/contenttypes/generic.py I found this:
{{{
if exclude is not None:
exclude.extend([ct_field.name, fk_field.name])
else:
exclude = [ct_field.name, fk_field.name]
}}}
makes no sense to me, but i'm not the architect ;)
So i'm attaching another patch, which includes the first and
deletes the whole "else" - for me this fixes GenericTabularInline
--
Ticket URL: <http://code.djangoproject.com/ticket/9498#comment:4>
Django <http://code.djangoproject.com/>
The Web framework for perfectionists with deadlines.
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"Django updates" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at
http://groups.google.com/group/django-updates?hl=en
-~----------~----~----~----~------~----~------~--~---