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

  • SEARCH
  • Home
  • 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 6783497
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 26, 20262026-05-26T16:52:17+00:00 2026-05-26T16:52:17+00:00

This question is (I think) about object/row level permissions in Django. We are building

  • 0

This question is (I think) about object/row level permissions in Django.

We are building a community and need to be able to set permissions based on actions that users take. For example, you should not be able to start a thread until you have posted so and so many answers.

Also, the users should be able to remove content that belongs to themselves. Based on the Django documentation, it seems like the standard framework does not support permissions for instances.

Should we build on the “empty” API that Django supplies, or should we use an app for this like django-guardian, django-rules, etc? Which ones would you in that case recommend?

Thank you!

  • 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-05-26T16:52:18+00:00Added an answer on May 26, 2026 at 4:52 pm

    you should not be able to start a thread until you have posted so and so many answers.

    You don’t need to use per-object permissions for that. Actually, you don’t need to use permissions for that at all. Just check if user meets the requirements in your views.

    Or you can use standard django permissions engine. Create permissions like “Start a Thread”, then set up signals to track when users add answers. When singal is emitted check if a user has enough answers and grant him the “Start a Thread” permission.

    It’s up to you to decide which one works better for you.

    Also, the users should be able to remove content that belongs to themselves.

    This can be done with per-object permissions. But if it’s the only reason to use them then I’d just add a field author to your models and use a simple item.author == request.user check to test if user can delete the item.

    So, my general advice is to keep it simple. Analyze your needs. Per-object permissions is a powerful tool which may be an overkill in your situation.

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

Sidebar

Related Questions

I think this question is really about my understanding of Garbage collection and variable
I think this is a moderately neophyte question. I've been using NHibernate/FluentNHibernate for about
This question is more about C# than it is about log4net (I think). I
I have this question about c# language's dynamic binding behavior. Consider the following object
You may think this question is like this question asked on StackOverflow earlier. But
I think this question is rather easy for you shell scripting monsters. I am
I don't think this question has been asked before. I'm a bit confused on
I think this question may end up being a bit subjective so I'm marking
I got this question in a programming test. Do you think this question is
I'm coming largely from a c++ background, but I think this question applies to

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.