title: How to define two player model in django?
body: <p>I am having trouble defining models for two player in django. I somehow managed to define models like this.</p>
  
  <p><strong>models.py</strong></p>
  
  <pre><code>from django.db import models
  from datetime import datetime
  
  class Player(models.Model):
      name=models.CharField(max_length=40)
      score = models.IntegerField(default = 0) 
  
      def __unicode__(self):
          return self.name
  
      def __str__(self):
          return self.name
  
  class Match(models.Model):
      player_one = models.ForeignKey(Player, on_delete=models.CASCADE, related_name='player_one')
      player_two = models.ForeignKey(Player, on_delete=models.CASCADE, related_name='player_two')
  
  class Score_log(models.Model):
      match = models.ForeignKey(Match, on_delete=models.CASCADE)
      log_time=models.DateTimeField(auto_now_add=True, blank=True)
  
      class Meta:
          ordering = ["-match","-log_time"]
  </code></pre>
  
  <p>In Match model, <code>player_one</code> and <code>player_two</code> is defined because i want to validate those with django forms.
  Also, I am unable to retrieve my objects with <code>Match.player_one.all()</code> and says <code>'ReverseManyToOneDescriptor' object has no attribute 'all'</code>.Help_me_out?</p>