mirror of
https://github.com/django/django.git
synced 2025-09-27 12:39:17 +00:00
Removed always True if check in stringfilter decorator.
This commit is contained in:
parent
fd866c25d1
commit
77d1b19623
1 changed files with 5 additions and 6 deletions
|
@ -37,7 +37,6 @@ def stringfilter(func):
|
||||||
passed as the first positional argument will be converted to a string.
|
passed as the first positional argument will be converted to a string.
|
||||||
"""
|
"""
|
||||||
def _dec(*args, **kwargs):
|
def _dec(*args, **kwargs):
|
||||||
if args:
|
|
||||||
args = list(args)
|
args = list(args)
|
||||||
args[0] = str(args[0])
|
args[0] = str(args[0])
|
||||||
if (isinstance(args[0], SafeData) and
|
if (isinstance(args[0], SafeData) and
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue