Changes between Initial Version and Version 1 of Ticket #14512, comment 16
- Timestamp:
- Sep 15, 2011, 12:38:49 PM (13 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
Ticket #14512, comment 16
initial v1 3 3 There was the desire to try to keep a simple unified approach to function-based and class-based views decoration 4 4 5 Accepting the assumption that you are only talking about decorating views - the following alternative approach was suggested by Jacob: https://gist.github.com/1219822 5 Accepting the assumption that you are only talking about decorating views - the following alternative approach was suggested by Jacob: 6 7 https://gist.github.com/1219822 6 8 7 9 This removes the need for the double call ()() syntax in Python < 2.6 … … 9 11 There were some subsequent comments that this would perhaps better live outside contrib.auth as some sort of general view utility. 10 12 11 https://gist.github.com/121982212 13 13 Would be good to see brief pro/con consideration of these two approaches - keeping as accepted, but if this stalls, will need to unfortunately move to DDN, at which point I will try to summarize for list.