1
0
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:
Simon Charette
2017-01-19 09:55:03 -05:00
parent 53f3d53ed4
commit 4c5ed3e683
10 changed files with 8 additions and 34 deletions

View File

@@ -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."""