Re: Django Custom User Admin Login

2014-03-21 Thread Alexander Myasnov
Sorry, it was my bug: wrong has_perm() declaration in custom user model. Everything works fine. четверг, 20 марта 2014 г., 19:54:35 UTC+4 пользователь Alexander Myasnov написал: > > > Hello, have you solved this bug? > > Now I have the same behavior with django-1.6.2 and django-guardian-1.2. > -

Re: Django Custom User Admin Login

2014-03-20 Thread Alexander Myasnov
суббота, 21 декабря 2013 г., 15:50:15 UTC+4 пользователь vinaya...@iiitd.ac.in написал: > > Also, from initial tests it appears that django-guardian is not setting > permissions with custom user. I wrote a small manage.py script to test that: > > from django.core.management.base import BaseComm

Re: Django Custom User Admin Login

2013-12-21 Thread Russell Keith-Magee
On Sat, Dec 21, 2013 at 7:29 PM, wrote: > So I solved the problem. Even I don't know how. :/ > I used > thisas > a template and added my own models and requirements on top of it. > > Slightly off topic but I needed t

Re: Django Custom User Admin Login

2013-12-21 Thread vinayak11118
Also, from initial tests it appears that django-guardian is not setting permissions with custom user. I wrote a small manage.py script to test that: from django.core.management.base import BaseCommand, CommandError from iiitd.models import * from guardian.shortcuts import assign_perm, remove_perm

Re: Django Custom User Admin Login

2013-12-21 Thread vinayak11118
So I solved the problem. Even I don't know how. :/ I used thisas a template and added my own models and requirements on top of it. Slightly off topic but I needed this setup because I want to grant users object leve

Re: Django Custom User Admin Login

2013-12-20 Thread Russell Keith-Magee
On Fri, Dec 20, 2013 at 12:08 PM, wrote: > I'm creating a custom user by extending the AbstractBaseUser class. I have > read the Django documentation and several tutorials online and I think that > what I've done till now is very basic and should work. > > The problem I'm facing is that even if I

Django Custom User Admin Login

2013-12-20 Thread vinayak11118
I'm creating a custom user by extending the AbstractBaseUser class. I have read the Django documentation and several tutorials online and I think that what I've done till now is very basic and should work. The problem I'm facing is that even if I create a new DB from scratch and do a syncdb, th