Commits

Nathaniel Tucker  committed 65a765e

Push more information about caster to vote admin list

  • Participants
  • Parent commits 42eae59

Comments (0)

Files changed (1)

File ahgl/profiles/models.py

     photo = ImageField(upload_to='caster_photos', null=True, blank=True, help_text=u"Must be 352 x 450 pixels")
     featured_match = models.ForeignKey('tournaments.Match', null=True, blank=True, related_name="casters")
     active = models.BooleanField(default=True)
+    
+    def __unicode__(self):
+        return u" ".join((unicode(self.tournament), unicode(self.user)))
 
 @receiver(socialauth_registered, sender=FacebookBackend, dispatch_uid="tournaments_facebook_extra_values")
 def facebook_extra_values(sender, user, response, details, **kwargs):