#22552: 1.7 beta 3 regression - BoundField.value() tries to call GenericRelatedObjectManager instance without args -------------------------------+------------------------ Reporter: stephenmcd | Owner: nobody Type: Bug | Status: new Component: Uncategorized | Version: 1.7-beta-2 Severity: Normal | Keywords: Triage Stage: Unreviewed | Has patch: 0 Easy pickings: 0 | UI/UX: 0 -------------------------------+------------------------ In Mezzanine we have a form widget for GFK fields. With Django 1.7 beta 3, we get the following error:
http://hastebin.com/qixuzotumi.mel AFAICT: In Django 1.6, `GenericRelatedObjectManager` was not callable, but in 1.7 it implements `__call__`. `BoundField.value()` then calls an instance of it without args, but `GenericRelatedObjectManager.__call__` expects a `manager` arg. `GenericRelatedObjectManager` also implements `do_not_call_in_templates`, which seems appropriate here. If I change `BoundField.value()` callable check to include `and not getattr(data, "do_not_call_in_templates", False)` then it resolves the issue. Happy to submit a patch if this sounds like the correct fix - really not sure though, quite out of my depth. -- Ticket URL: <https://code.djangoproject.com/ticket/22552> Django <https://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 unsubscribe from this group and stop receiving emails from it, send an email to django-updates+unsubscr...@googlegroups.com. To post to this group, send email to django-updates@googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/django-updates/053.97b25cac3e9556a0a4485cc427f92f38%40djangoproject.com. For more options, visit https://groups.google.com/d/optout.