Changes between Version 1 and Version 2 of Ticket #28999, comment 3
- Timestamp:
- Jan 8, 2018, 6:29:28 PM (7 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
Ticket #28999, comment 3
v1 v2 36 36 return False 37 37 return hash(self) == hash(other) 38 def __repr__(self): 39 return repr(self.__call__.__func__) 38 40 view = callable_view() 39 41 view.view_class = cls … … 42 44 # take name and docstring from class 43 45 update_wrapper(view, cls, updated=()) 46 update_wrapper(view.__call__.__func__, cls, updated=()) 44 47 45 48 # and possible attributes set by decorators 46 49 # like csrf_exempt from dispatch 47 update_wrapper(view, cls.dispatch, assigned=()) 50 update_wrapper(view.__call__.__func__, cls.dispatch, assigned=()) 51 48 52 return view 49 53 }}}