Changes between Version 1 and Version 2 of Ticket #28999, comment 3


Ignore:
Timestamp:
Jan 8, 2018, 6:29:28 PM (7 years ago)
Author:
Andrew Standley

Legend:

Unmodified
Added
Removed
Modified
  • Ticket #28999, comment 3

    v1 v2  
    3636                    return False
    3737                return hash(self) == hash(other)
     38            def __repr__(self):
     39                return repr(self.__call__.__func__)
    3840        view = callable_view()
    3941        view.view_class = cls
     
    4244        # take name and docstring from class
    4345        update_wrapper(view, cls, updated=())
     46        update_wrapper(view.__call__.__func__, cls, updated=())
    4447
    4548        # and possible attributes set by decorators
    4649        # like csrf_exempt from dispatch
    47         update_wrapper(view, cls.dispatch, assigned=())
     50        update_wrapper(view.__call__.__func__, cls.dispatch, assigned=())
     51       
    4852        return view
    4953}}}
Back to Top