2
0
mirror of https://expo.survex.com/repositories/troggle/.git synced 2024-11-25 08:41:51 +00:00

Add ordering to the data issues model

This commit is contained in:
Sam Wenham 2019-04-18 19:01:29 +01:00
parent 23df89cf31
commit ae284a1f30

View File

@ -876,5 +876,8 @@ class DataIssue(TroggleModel):
parser = models.CharField(max_length=50, blank=True, null=True)
message = models.CharField(max_length=400, blank=True, null=True)
class Meta:
ordering = ['date']
def __unicode__(self):
return u"%s - %s" % (self.parser, self.message)