mirror of
https://github.com/django/django.git
synced 2025-11-23 12:26:57 +00:00
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:
parent
4745ea1d27
commit
d847ddfe1d
4 changed files with 49 additions and 2 deletions
|
|
@ -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:
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue