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 7844643
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 2, 20262026-06-02T16:56:56+00:00 2026-06-02T16:56:56+00:00

I added a Meta class which contains the following permissions but i don’t know

  • 0

I added a Meta class which contains the following permissions but i don’t know if its added just by only putting them in Meta class or i need to add something or assign them by a certain way. Here is my code :

class Contractor(models.Model): 
    contractor_verified = models.BooleanField(default=False)    
    Employer = models.OneToOneField(Employer)
    job_title = models.CharField(max_length=50)
    name = models.CharField(max_length=250)

    class Meta:
        permissions = (
        ("permission", "perm"),
        ("bid", "bid"),
        ("send_request_to_verifier", "send_request_to_verifier"),
        ("gain_points", "gain_points"),
        ("loose_points", "loose_points"),
        )

and i am sorry if anything is not clear. I just need help on how to add custom permissions to an object which is not an instance of Django User

  • 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-02T16:56:57+00:00Added an answer on June 2, 2026 at 4:56 pm

    The django permissions system is only designed out of the box to support User and Group model permissions. From the django docs regarding object permissions: https://docs.djangoproject.com/en/1.3/topics/auth/#handling-object-permissions

    Django’s permission framework has a foundation for object permissions,
    though there is no implementation for it in the core. That means that
    checking for object permissions will always return False or an empty
    list (depending on the check performed).

    If you are looking for generic object-level permissions, there are a slew of available packages here: http://pypi.python.org/pypi?%3Aaction=search&term=django+permissions&submit=search

    Some of these simply implement the model level permissions, and some let you define a per instance permission.

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

Sidebar

Related Questions

I have a internal website hosted on IIS. I added the following meta code
update I added a metabox using http://codex.wordpress.org/Function_Reference/add_meta_box Unfortunatly it only adds the metabox to
I added to my system-wide /etc/security/limits.conf the following two rows: * soft rtprio 55
I added a configuration variable in application.rb such as module Www class Application <
I added an event handler to the WebClient's DownloadProgressChanged event, but it never seems
I've got a custom class (which resembles an NSArray in concept and, hopefully, formatted
I'm using exclude in my form's Meta class to exclude a field from my
I am using custom permissions in my Django models like this: class T21Turma(models.Model): class
In a Django app, I'm having a model Bet which contains a ManyToMany relation
Why can't simplyscroll handle this div which has nested divs? ADDED INFO The scrolling

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.