mirror of
https://github.com/django/django.git
synced 2025-11-07 07:15:35 +00:00
Refs #23919 -- Removed __nonzero__() methods (for Python 2).
Thanks Tim for the review.
This commit is contained in:
@@ -78,9 +78,6 @@ class BaseFormSet:
|
||||
"""All formsets have a management form which is not included in the length"""
|
||||
return True
|
||||
|
||||
def __nonzero__(self): # Python 2 compatibility
|
||||
return type(self).__bool__(self)
|
||||
|
||||
@cached_property
|
||||
def management_form(self):
|
||||
"""Returns the ManagementForm instance for this FormSet."""
|
||||
|
||||
Reference in New Issue
Block a user