title: Steps to add model level permission in Django
body: <p>I have my legacy database.I created models using inspectdb.I am able to see my tables in admin page . I created 4 users and i want to implement role-based permission for each model. I just show you with example what i did in model to add permissions like edit, view, delete.
  Example:-</p>
  
  <pre><code>class BusinessIntegrationSourceCategory(models.Model):
      date_added = models.DateTimeField(blank=True, null=True)
      date_modified = models.DateTimeField(blank=True, null=True)
      source_category = models.CharField(max_length=255, blank=True, null=True)
  
      class Meta:
          managed = False
          db_table = 'business_integration_source_category'
          permissions = (
              ("view_category", "view category"),
               ("add_category", "Add category"),
              ("delete_category", "Delete category"),
          )
  </code></pre>
  
  <p>Now where i can add the next steps to add role based permissions.</p>