I had another case when this happened. I had an application called transcription with two models: Project and Record. Having received it mostly, I decided to rename the "recording" application. The admin application worked fine as an administrator, but any non-administrator user received this error message. In the end, I found (in my sqlite db) the django_content_type table. This one had the following entries:
id name app_label model
-------------------------------------
8 project transcription project
9 recording transcription recording
10 project recording project
11 recording recordings recording
Somewhere along the way, I managed to add two (almost - I don’t know why the “record” in record 10) correct records, now leaving the incorrect records intact. The admin user worked just fine (I wonder why), but any other group got an error. When I looked at auth_group_permissions. I saw that only records 8 and 9 were assigned, and, of course, there was no longer an application called transcription there. Hence the error.
I deleted entries 10 and 11 and changed app_labels 8 and 9 to “entries” and there is fun in Mudville.
Joe Gillon May 26 '13 at 14:32 2013-05-26 14:32
source share