Django groups

I have this project and I want to be able to allow only members in a particular group to view it. But the problem is that in my admin panel, there are two groups there but when I run


I get an empty list?

I’m using django 3.2

That would be an indication that the user making that request isn’t assigned to any groups.

Even as an admin it still was returning an empty Queryset?

Sure, if the admin account isn’t assigned to any groups. There’s a many-to-many relationship between User and Group - the nature of the User has no effect on that relationship.

Ok, thanks. I’ve seen where I made a mistake