lewis machilika
lewis machilika

Reputation: 897

You don’t have permission to view or edit anything - only super users is able to do everything

I have a model registered in Django admin. Then I created two users superuser and a normal user. This normal user was given the staff=True, read and change rights for News model by the superuser. However, when i log in with this new user it is giving me You don’t have permission to view or edit anything.

@admin.register(News)
class NewsAdmin(admin.ModelAdmin):
     pass

What needs to be done? I am using Django 3.2

Upvotes: 1

Views: 370

Answers (1)

Code-Apprentice
Code-Apprentice

Reputation: 83577

The admin console is only useable by superuser or "staff" user. You need to set one or both of these fields on the user to True.

Upvotes: 1

Related Questions