Re: hoping for a quick code review of a few simple class-based generic views

2014-05-28 Thread Howard Edson
Thank you - that helps! On Tuesday, May 27, 2014 3:14:06 PM UTC-7, WongoBongo wrote: > > I'd recommend removing the login_required checks from the views. Put them > in the UrlConf instead: > > from django.contrib.auth.decorators import login_required > > from yourapp.views import MyListsView > >

Re: hoping for a quick code review of a few simple class-based generic views

2014-05-27 Thread Kelvin Wong
I'd recommend removing the login_required checks from the views. Put them in the UrlConf instead: from django.contrib.auth.decorators import login_required from yourapp.views import MyListsView urlpatterns = patterns('', url(r'^$', login_required(MyListsView.as_view()), name='yourapp_list')