Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8473817
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 10, 20262026-06-10T17:27:25+00:00 2026-06-10T17:27:25+00:00

I have several models, including User and Group from contrib.auth . I run Django

  • 0

I have several models, including User and Group from contrib.auth. I run Django 1.4.1.

None of the users appears to have permissions:

In [1]: User.objects.get(id=1).user_permissions.all()
Out[1]: []

So, this means user has no permissions, and there are no permissions in the user’s group. But

In [2]: User.objects.get(id=1).has_perm('change_profile')
Out[2]: True

(Expected False)

How can have only permssions set explicitly? Do I need to change auth backend for this?

In settings, only model backend is set:

In [23]: settings.AUTHENTICATION_BACKENDS
Out[23]: ('django.contrib.auth.backends.ModelBackend',)
  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-10T17:27:26+00:00Added an answer on June 10, 2026 at 5:27 pm

    The issue was that the user was superuser (is_superuser), and any permission check would return True.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have several Models: Workspace User Asset WorkspaceUser WorkspaceAsset Workspace has many users and
I have several models inheriting from a base model. The fields in the base
Let's say i have several different models in django project. Now i need to
I have several models: User = an ordinary user class (does not belong to
I have several models that need to call a method that takes a particular
I have several models that belong_to :status . Statuses are: Active Hidden Banned I
I have several Mongoid models that I'm running mapreduce on, and I'd like to
If you have several view models on one page, how do you ensure that
I have several 'lookup' fields in my models where I don't want nulls, but
I have several small classes that are in a single file in /app/models, similar

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.