Re: User can't edit anything

395 views
Skip to first unread message

Nikolas Stevenson-Molnar

unread,
Oct 15, 2012, 12:22:38 PM10/15/12
to django...@googlegroups.com
Being 'staff' only means that the user can access the admin area, not
that they can do anything there. Double check that they have permissions
(or are a member of a group which has permissions) to edit each content
type you want them to be able to edit.

_Nik

On 10/12/2012 2:02 PM, Shawn H wrote:
> I'm new to django, and using the admin site for user management. I've
> created a new user, issued app | model | permission of add, change,
> and delete to this user for the app I've built, but when I logon as
> that user, I get the "you don't have permission to edit anything".
> The user is active (obviously as I can logon as that user) and is
> staff, but the permissions don't seem to be working. What might I be
> missing? Thanks. --
> You received this message because you are subscribed to the Google
> Groups "Django users" group.
> To view this discussion on the web visit
> https://groups.google.com/d/msg/django-users/-/5zMO9ZPGel4J.
> To post to this group, send email to django...@googlegroups.com.
> To unsubscribe from this group, send email to
> django-users...@googlegroups.com.
> For more options, visit this group at
> http://groups.google.com/group/django-users?hl=en.

Shawn H

unread,
Oct 16, 2012, 5:08:16 PM10/16/12
to django...@googlegroups.com
I have, as far as I can tell.  I've created a group with add, edit, and delete permissions on the model, and made the user a member of that group.  The user can't edit anything.  I've deleted the group and just assigned add, edit, and delete privileges to the user, and the user still can't edit anything.  The super user can edit no problem, just not any other user.

Nikolas Stevenson-Molnar

unread,
Oct 16, 2012, 7:23:35 PM10/16/12
to django...@googlegroups.com
Out of curiosity (obviously it wouldn't be a good solution), if you give the account which doesn't work superuser status, is that account then able to edit content?

_Nik
To view this discussion on the web visit https://groups.google.com/d/msg/django-users/-/3f7cDH1EMcAJ.

Shawn H

unread,
Oct 17, 2012, 10:30:18 AM10/17/12
to django...@googlegroups.com
Good test.  The user that can't edit without superuser status is able to edit the model with superuser status.  Not sure where that leaves me, but at least we ruled out one potential issue.  Thanks.

Shawn H

unread,
Oct 17, 2012, 2:39:13 PM10/17/12
to django...@googlegroups.com
Just as a test, I deleted the user, and created a new one, and issued the appropriate permissions.  Same result.  No permission to edit anything.

Shawn H

unread,
Oct 17, 2012, 3:12:41 PM10/17/12
to django...@googlegroups.com
I figured it out.  I checked the database, and somehow in the process of developing my app, I had registered the model twice, and then I removed the first model.  The admin app was picking up the first model, not the second, and since the first model was gone, there was nothing to edit.  Since the data was junk data, I deleted the database, ran syncdb again, and then recreated the user and issued permissions to the model (now only one registered in django_content_type).  Logon as the non superuser user, and I can edit the model.  Thanks for the help!
Reply all
Reply to author
Forward
0 new messages