Fixed #3871 -- Fixed regression introduced by 04a2a6b.

Added do_not_call_in_templates=True attribute to RelatedManagers
to prevent them from being called.

Thanks jbg@ for the report.
This commit is contained in:
Loic Bistuer 2013-09-30 10:21:21 +07:00 committed by Tim Graham
parent 4745ea1d27
commit d847ddfe1d
4 changed files with 49 additions and 2 deletions

View file

@ -335,6 +335,7 @@ def create_generic_related_manager(superclass):
object_id_field_name = self.object_id_field_name,
prefetch_cache_name = self.prefetch_cache_name,
)
do_not_call_in_templates = True
def get_queryset(self):
try: