﻿id	summary	reporter	owner	description	type	status	component	version	severity	resolution	keywords	cc	stage	has_patch	needs_docs	needs_tests	needs_better_patch	easy	ui_ux
22552	1.7 beta 3 regression - BoundField.value() tries to call GenericRelatedObjectManager instance without args	stephenmcd	nobody	"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.

"	Bug	closed	contrib.contenttypes	1.7-beta-2	Release blocker	invalid		loic84	Accepted	0	0	0	0	0	0
