Fixed long lines
This commit is contained in:
@@ -67,11 +67,6 @@ class Match(models.Model):
|
||||
leagueShortcut = models.CharField(max_length=12)
|
||||
|
||||
def __unicode__(self):
|
||||
"""
|
||||
return (str(self.matchID) +
|
||||
str(Team.objects.get(teamID=int(self.idTeam1)).values(name)) + " - " +
|
||||
str(Team.objects.get(teamID=int(self.idTeam2)).values(name)))
|
||||
"""
|
||||
return (str(self.matchID))
|
||||
|
||||
class Tipp(models.Model):
|
||||
@@ -79,7 +74,9 @@ class Tipp(models.Model):
|
||||
tipperID = models.ForeignKey(User)
|
||||
pointsTeam1 = models.PositiveSmallIntegerField()
|
||||
pointsTeam2 = models.PositiveSmallIntegerField()
|
||||
score = models.PositiveIntegerField(blank=True, null=True)
|
||||
score = models.PositiveIntegerField(
|
||||
blank=True, null=True
|
||||
)
|
||||
|
||||
class Meta:
|
||||
unique_together = ("matchID", "tipperID")
|
||||
|
||||
Reference in New Issue
Block a user