title: Django - Remove Unique Constraint from a field
body: <p>I have a model like </p>
  
  <pre><code>class LoginAttempts(models.Model):
      user = models.OneToOneField(User, unique=False)
      counter = models.IntegerField(null=True)
      login_timestamp = models.DateTimeField(auto_now=True)
  </code></pre>
  
  <p>The table created in db is like </p>
  
  <p><a href="https://i.stack.imgur.com/50qxz.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/50qxz.png" alt="enter image description here"></a></p>
  
  <p>However If I create another entry with user_id = 362 it fails with <code>IntegrityError: duplicate key value violates unique constraint</code>. Id is already my primary key, I want to have same user having different counters instead of creating a new table referencing them since this is simple table. </p>
  
  <p>How to achieve the same or what what could be the best way. I want to restrict user to some specified number of failed logins.  </p>