Ticket #5808: django-pickle-filters.patch

File django-pickle-filters.patch, 469 bytes (added by simon@…, 7 years ago)

Patch

  • django/template/defaultfilters.py

    diff --git a/django/template/defaultfilters.py b/django/template/defaultfilters.py
    a b def stringfilter(func): 
    2828    # Include a reference to the real function (used to check original
    2929    # arguments by the template parser).
    3030    _dec._decorated_function = getattr(func, '_decorated_function', func)
     31    _dec.__name__ = func.__name__
    3132    return _dec
    3233
    3334###################
Back to Top