Re: LoginRequiredMixin and UserPassesTestMixin login_url clash

2016-12-15 Thread Igor Belo
('website:account-detail') Not an elegant solution at all but solved my problem. Wondering if it worths to open a pull request. Well, hope it helps someone in the future. On Thursday, December 15, 2016 at 3:53:38 PM UTC-2, Igor Belo wrote: > > Let me describe my scenario. > > I

LoginRequiredMixin and UserPassesTestMixin login_url clash

2016-12-15 Thread Igor Belo
Let me describe my scenario. I got some views that I want to check two conditions before render: 1. user is logged in 2. user fulfilled account details form If user is not logged in -> redirect to login page. If user have not fulfilled its account details -> redirect to the form page. I'm us