mirror of
https://github.com/django/django.git
synced 2025-11-07 07:15:35 +00:00
Fixed #27119 -- Cached BaseFormSet.management_form property
Thanks Tim Graham for the review.
This commit is contained in:
@@ -87,7 +87,7 @@ class BaseFormSet(object):
|
||||
def __nonzero__(self): # Python 2 compatibility
|
||||
return type(self).__bool__(self)
|
||||
|
||||
@property
|
||||
@cached_property
|
||||
def management_form(self):
|
||||
"""Returns the ManagementForm instance for this FormSet."""
|
||||
if self.is_bound:
|
||||
|
||||
Reference in New Issue
Block a user