title: How to use two unique constraints in Django model?
body: <p>I have a Django model for a player of a game</p>
  <pre><code>class Player(models.Model):
      name = models.CharField(max_length=50)
      team = models.ForeignKey('Team', on_delete=models.CASCADE, blank=True, null=True)
      game = models.ForeignKey('Game', on_delete=models.CASCADE)
      objects = GameManager()
  
      class Meta:
         unique_together = ('name', 'game',)
  </code></pre>
  <p>I have only one unique constraint, that the name and the game are unique together.</p>
  <p>Now, I would like to extend our page by adding registered users. So, I would add this to the model.</p>
  <pre><code>        user = models.ForeignKey('auth.User', on_delete=models.CASCADE, blank=True, null=True)
  </code></pre>
  <p>So, an registered user can subscribe to a game by adding a name, team, game, and his/her user. However, the user should only be able to add his account once to an game, which would be a second unique constrain</p>
  <pre><code>       unique_together = ('user', 'game',)
  </code></pre>
  <p>Is it possible to give  in Django two unique constraints to the model? Or do I have to search in the table manually prior to saving the new entries? Or is there a better way?</p>