Are you using a custom authentication backend? Admin calls get_all_permissions() method on the logged-in user, which tries to call get_all_permissions() method of each authentication backend used.
The back-ends used should implement this method and definetely http://docs.djangoproject.com/en/dev/topics/auth/#other-authentication-sources should mention that. Best, oMat On Mar 12, 4:28 pm, dave <david.mic...@gmail.com> wrote: > Hi, > I'm encountering exactly the same problem as yours. Didyoufinally > find the solutions? > Thanks, > Dave > > On Feb 17, 1:25 pm, Tipan <t...@ortengo.co.uk> wrote: > > > I'm having some problems with the New Forms Admin that are giving me > > the error message "Youdon'thavepermissiontoeditanything." when > > I log into the Admin. I also lose the admin-media so that the page > > displays on a plain white background. > > > I'm using the latest django release from the trunk r9844. > > > Interestingly, Ihaveanother app that uses exactly the same database > > and this delivers full access for the same user (a superuser). > > > I've checked through the urls/settings and admin.py files and both are > > identical except for the app name. > > > On previous threads it suggests putting print statements in contrib > > \admin\__init__.py to check the apps loaded by autodiscover and it > > seems to be working as expected: > > django.contrib.auth > > django.contrib.contenttypes > > django.contrib.sessions > > django.contrib.admin > > django.contrib.humanize > > django.contrib.flatpages > > hive.promotions > > > where hive is my app. > > > My urls.py looks like this: > > ------------ > > from django.conf.urls.defaults import * > > from django.contrib import admin > > > admin.autodiscover() > > > js_info_dict = { > > 'packages': ( 'hive.promotions',),} > > > urlpatterns = patterns('', > > # Example: > > (r'^', include('promotions.urls')), > > > (r'^hive/', include('promotions.urls')), > > (r'^jsi18n/$', 'django.views.i18n.javascript_catalog', > > js_info_dict), > > > # Admin: > > ('^hiveadmin/(.*)', admin.site.root), > > ) > > -------------- > > My admin.py looks like this: > > > from django.contrib import admin > > from promotions.models import * > > > class PointTypeAdmin(admin.ModelAdmin): > > list_display= > > ('points_type','date_created','ranking','points_expire','description', > > 'cash_validity_period') > > save_on_top=True > > pass > > > admin.site.register(PointType, PointTypeAdmin) > > ....plus other model classes.. > > > I seem to be going into blind alleys at the moment, can anyone suggest > > a troubleshooting direction for me to pursue? > > > Thanks --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---