Solved - was a custom authentication backend issue. Looking into the get_all_permissions() method, I realized that it calls the authentication backend's get_all_permissions() method.
I have been using a custom authentication back-end, developed according to: http://docs.djangoproject.com/en/dev/topics/auth/#other-authentication-sources I think, this document should mention about admin / permissions issues when using custom backends. Best, oMat On May 7, 3:01 pm, "omat * gezgin.com" <o...@gezgin.com> wrote: > While trying to track down the problem, I encountered this strange > behavior that the permissions of the user are not returned with > get_all_permissions(): > > >>> u = User.objects.get(username='demo') > >>> u.user_permissions.all() > > [<Permission: sites | site | Can add site>, <Permission: sites | site > | Can change site>, <Permission: sites | site | Can delete site>] > > >>> u.get_all_permissions() > > set([]) > > Am I missing something basic? > > Best, > oMat > > On May 7, 1:25 pm, "omat * gezgin.com" <o...@gezgin.com> wrote: > > > Sure, otherwise I won't be able to login to admin with that user at > > first place. > > > Best, > > oMat > > > On May 7, 1:04 pm, Kenneth Gonsalves <law...@thenilgiris.com> wrote: > > > > On Thursday 07 May 2009 15:32:08 omat wrote: > > > > > "You don't have permission to edit anything." > > > > you have set is_staff? > > > -- > > > regards > > > kghttp://lawgon.livejournal.com --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Django users" group. To post to this group, send email to django-users@googlegroups.com To unsubscribe from this group, send email to django-users+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/django-users?hl=en -~----------~----~----~----~------~----~------~--~---