title: How to set permission as per user using Django and Python?
body: <p>I need to set permission as per registered user using Django and Python. I have done something but confused whether it is fulfilled my requirement or not. I am providing my code below.</p>
  
  <pre><code>class Control(models.Model):
      """docstring for Control"""
  
      user_id = models.ForeignKey(User)
      control_reactor = models.IntegerField(default=0)
      find_reactor = models.IntegerField(default=0)
      view_reactor = models.IntegerField(default=0)
      class Meta:
          """docstring for Meta"""
          permissions = (
              ("view_reactor", "can view reactor"),
              ("find_reactor", "can find reactor"),
              ("controll_reactor", "can controll reactor"),
          )
  </code></pre>
  
  <p>I am access those permission using Django decorator function like <code>@permission_required</code>. Here I need as per user I will set the 3 permissions but confused that this model class is doing as per requirement.</p>