title: How to Create Custom Permission and Group model in django?
body: <p>i am trying to create my Custom Permission and Group model with following code but when i try to migrate i got error "django.db.utils.ProgrammingError: relation "auth_permission" already exists"</p>
  
  <pre><code>class Role(models.Model):
      def __unicode__(self):
          return self.name
  
      # slug          = models.CharField(max_length=50, primary_key=True)
      name = models.CharField(max_length=50, blank=True)
  
      class Meta:
          db_table = 'auth_group'
  
  
  # ROLE_CHOICES = (('superuser', 'Super User'),('user', 'User'))
  
  class Permission(models.Model):
      def __unicode__(self):
          return self.name
  
      codename = models.CharField(max_length=50, blank=False)
      name = models.CharField(max_length=50, blank=False)
  
      class Meta:
          db_table = 'auth_permission'
  </code></pre>
  
  <p>---------------------------Settings.py----------------------------</p>
  
  <pre><code>INSTALLED_APPS = (
      'django.contrib.sessions',
      'django.contrib.sites',
      'django.contrib.auth',
      'django.contrib.contenttypes',
      'django.contrib.messages',
      'django.contrib.staticfiles',
      'rest_framework',
      'rest_framework.authtoken',
      'django_filters',
      'sparkAuth',
      # Uncomment the next line to enable the admin:
      # 'django.contrib.admin',
      # Uncomment the next line to enable admin documentation:
      # 'django.contrib.admindocs',
  )
  </code></pre>