Better HN
top
new
best
ask
show
jobs
Log in
Sign up
Better HN
Comment
by
tuxcanfly
· 15y ago · 0 comments
How do you add decorators to a class based view? I find this annoying:
dashboard = login_required(DashboardView.as_view())
Takes the fun out of decorators for me.
Comments
[–]
izak30
15y ago
https://gist.github.com/1075119