diff --git a/django/core/defaultfilters.py b/django/core/defaultfilters.py index f0e743500a..0b223bcee4 100644 --- a/django/core/defaultfilters.py +++ b/django/core/defaultfilters.py @@ -368,7 +368,7 @@ def yesno(value, arg): try: yes, no, maybe = bits except ValueError: # unpack list of wrong size (no "maybe" value provided) - yes, no, maybe = bits, bits[1] + yes, no, maybe = bits, bits[1], bits[1] if value is None: return maybe if value: