2
0
mirror of https://expo.survex.com/repositories/troggle/.git synced 2024-11-21 23:01:52 +00:00

Adding field to logbookentry

This commit is contained in:
Philip Sargent 2023-09-02 14:49:43 +03:00
parent 34064972e9
commit c9729c046c

View File

@ -52,6 +52,7 @@ class LogbookEntry(TroggleModel):
place = models.CharField(
max_length=100, blank=True, null=True, help_text="Only use this if you haven't chosen a cave"
)
other_people = models.CharField(max_length=200, blank=True, null=True) # foreign_friends and *guests
text = models.TextField()
slug = models.SlugField(max_length=50) # this is tripid
time_underground = models.FloatField(null=True, help_text="In decimal hours")
@ -104,7 +105,6 @@ def writelogbook(year, filename):
print(f"Logbook exported has {len(logbook_entries)} entries in it.")
extension = "html"
template = "logbook2005style.html"
t = loader.get_template(template)