Renewed get_current_md() based on OL method

This commit is contained in:
2016-06-11 17:09:13 +02:00
parent c02f137c0b
commit 911b19068c
4 changed files with 40 additions and 44 deletions

View File

@@ -57,6 +57,7 @@ class Match(models.Model):
matchDateTime = models.DateTimeField()
group = models.IntegerField()
matchday = models.IntegerField()
matchday_name = models.CharField(max_length=128)
idTeam1 = models.ForeignKey(Team, related_name='+')
idTeam2 = models.ForeignKey(Team, related_name='+')
pointsTeam1 = models.SmallIntegerField()
@@ -122,6 +123,7 @@ class Post(models.Model):
published = models.BooleanField(default=True)
created = models.DateTimeField(auto_now_add=True)
author = models.ForeignKey(User)
mandant = models.ForeignKey(Mandant)
class Meta:
ordering = ['-created']