Re: LoginRequiredMixin ignored

2016-06-16 Thread Sergiy Khohlov
please send your http header. Look like auth header is present by browser default Вірусів немає. www.avast.com

Re: LoginRequiredMixin ignored

2016-06-16 Thread Lee Hinde
I always assume it's me. That was some errant copy and paste. Thanks! On Wed, Jun 15, 2016 at 11:51 PM, Babatunde Akinyanmi wrote: > Actually it's you. Please see inline: > > On Jun 15, 2016 11:56 PM, "Lee Hinde" wrote: > > > > Using Django 1.9.7. > > > > I have the following class: > > > > cl

Re: LoginRequiredMixin ignored

2016-06-15 Thread Babatunde Akinyanmi
Actually it's you. Please see inline: On Jun 15, 2016 11:56 PM, "Lee Hinde" wrote: > > Using Django 1.9.7. > > I have the following class: > > class AddView(LoginRequiredMixin, CreateView): > template_name = "entry.html" > model = Property > form_class = AddPropertyForm > success_

Re: LoginRequiredMixin ignored

2016-06-15 Thread Brian Schott
Try swapping class order. Sent from my iPhone > On Jun 15, 2016, at 6:55 PM, Lee Hinde wrote: > > Using Django 1.9.7. > I have the following class: > class AddView(LoginRequiredMixin, CreateView): > template_name = "entry.html" > model = Property > form_class = AddPropertyForm >

LoginRequiredMixin ignored

2016-06-15 Thread Lee Hinde
Using Django 1.9.7. I have the following class: class AddView(LoginRequiredMixin, CreateView): template_name = "entry.html" model = Property form_class = AddPropertyForm success_url = "/buy/" login_url = '/account/login/' def dispatch(self, request, *args, **kwargs):