mirror of
https://expo.survex.com/repositories/troggle/.git
synced 2024-11-22 07:11:52 +00:00
Better labels for objects in admin console
This commit is contained in:
parent
7a6578e205
commit
3b0c6ef2ea
@ -459,7 +459,7 @@ class QM(TroggleModel):
|
||||
comment=models.TextField(blank=True,null=True)
|
||||
|
||||
def __str__(self):
|
||||
return "%s %s" % (self.code(), self.grade)
|
||||
return f'{self.nearest_station_name}, {self.code()}-{self.grade}'
|
||||
|
||||
def code(self):
|
||||
if self.found_by:
|
||||
|
@ -81,6 +81,11 @@ class SurvexStation(models.Model):
|
||||
else:
|
||||
return r
|
||||
|
||||
class Meta:
|
||||
ordering = ('id',)
|
||||
def __str__(self):
|
||||
return self.name and str(self.name) or 'no name'
|
||||
|
||||
#
|
||||
# Single SurvexBlock
|
||||
#
|
||||
|
Loading…
Reference in New Issue
Block a user