1
@property
decorator isn’t needed:
class TotalsAndStats(models.Model):
# ...
def __str__(self):
return str(self.athlete.id) + ":" + self.period
Source:stackexchange.com
1
@property
decorator isn’t needed:
class TotalsAndStats(models.Model):
# ...
def __str__(self):
return str(self.athlete.id) + ":" + self.period