forked from expo/troggle
Convert.format() to f-strings with flynt
This commit is contained in:
@@ -238,4 +238,4 @@ def get_people(request, expeditionslug):
|
||||
|
||||
def get_logbook_entries(request, expeditionslug):
|
||||
exp = Expedition.objects.get(year = expeditionslug)
|
||||
return render(request,'options.html', {"items": [(le.slug, "%s - %s" % (le.date, le.title)) for le in exp.logbookentry_set.all()]})
|
||||
return render(request,'options.html', {"items": [(le.slug, f"{le.date} - {le.title}") for le in exp.logbookentry_set.all()]})
|
||||
|
||||
Reference in New Issue
Block a user