mirror of
https://expo.survex.com/repositories/troggle/.git
synced 2026-02-08 16:01:22 +00:00
Fixed weird QM issues, all working
This commit is contained in:
@@ -251,7 +251,7 @@ class PersonLogEntry(TroggleModel):
|
||||
class QM(TroggleModel):
|
||||
"""This is based on qm.csv in trunk/expoweb/1623/204 which has the fields:
|
||||
"Number","Grade","Area","Description","Page reference","Nearest station","Completion description","Comment"
|
||||
|
||||
|
||||
All the stuff handling TICK QMs is INCOMPLETE
|
||||
"""
|
||||
|
||||
@@ -274,13 +274,21 @@ class QM(TroggleModel):
|
||||
ticked = models.BooleanField(default=False)
|
||||
location_description = models.TextField(blank=True, null=True)
|
||||
completion_description = models.TextField(blank=True, null=True)
|
||||
# completion_date = models.DateField(blank=True, null=True) #never used in fact
|
||||
nearest_station_name = models.CharField(max_length=200, blank=True, null=True)
|
||||
resolution_station_name = models.CharField(max_length=200, blank=True, null=True)
|
||||
area = models.CharField(max_length=100, blank=True, null=True)
|
||||
page_ref = models.TextField(blank=True, null=True)
|
||||
comment = models.TextField(blank=True, null=True)
|
||||
loaded_from_csv = models.BooleanField(default=False)
|
||||
|
||||
class Meta:
|
||||
constraints = [
|
||||
models.UniqueConstraint(
|
||||
fields=['cave', 'blockname', 'grade', 'number', 'expoyear'],
|
||||
name='unique_qm_identity'
|
||||
)
|
||||
]
|
||||
|
||||
def __str__(self):
|
||||
return f"{self.code()}"
|
||||
|
||||
|
||||
Reference in New Issue
Block a user