title: How can I write my own permissions in django
body: <p>I want to write my own permissions in Django, I mean I want to define exactly what a user can or cannot do, I have read this <a href="https://docs.djangoproject.com/en/2.1/topics/auth/customizing/#custom-permissions" rel="nofollow noreferrer">enter link description here</a>
  but it seems change_task_status is sth predefined in Django. for example, I  want to define exactly users can have access to just get method of a view and just from row 1 to 8 of the database table, and sth like this. How can I do this?</p>
  
  <p><strong>Edit:</strong></p>
  
  <p>First of all, I did this with default permissions that are in auth_permission table in Django, for each model it creates permissions of add/view/change/delete in this table and I know that I can use it for my purpose. but I have two problems, first I don't want to use the default permission class od Django.contrib,auth model thus I want to create my own permission table (instead of auth_permissions I have mapp_permissions) it makes a problem for me now this new table is not filled with default permissions so I need to define permissions myself I mean I have to say what add_modelname means and also after I do this I need to define some new permissions that say for example for one model:user_x have permission view_modelname, users also have this permission but from data of this model which stored in database user_y just can see records of 1 to 8 of db table not all</p>
  
  <p><strong>Edit 2:</strong></p>
  
  <p>as you can see in permissions class comment it says:"it's
      not currently possible to say "Mary may only change news stories that have a
      certain status or publication date.""
  how can I make it possible?
  also, there should be a code inside Django files that define for the machine for example add_user which is in the table means what</p>