mirror of
https://expo.survex.com/repositories/troggle/.git
synced 2024-11-25 08:41:51 +00:00
Adding field to logbookentry
This commit is contained in:
parent
34064972e9
commit
c9729c046c
@ -52,6 +52,7 @@ class LogbookEntry(TroggleModel):
|
|||||||
place = models.CharField(
|
place = models.CharField(
|
||||||
max_length=100, blank=True, null=True, help_text="Only use this if you haven't chosen a cave"
|
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()
|
text = models.TextField()
|
||||||
slug = models.SlugField(max_length=50) # this is tripid
|
slug = models.SlugField(max_length=50) # this is tripid
|
||||||
time_underground = models.FloatField(null=True, help_text="In decimal hours")
|
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.")
|
print(f"Logbook exported has {len(logbook_entries)} entries in it.")
|
||||||
|
|
||||||
extension = "html"
|
|
||||||
template = "logbook2005style.html"
|
template = "logbook2005style.html"
|
||||||
|
|
||||||
t = loader.get_template(template)
|
t = loader.get_template(template)
|
||||||
|
Loading…
Reference in New Issue
Block a user