forked from expo/troggle
remove entry-type and tidy cache bits
This commit is contained in:
@@ -64,12 +64,10 @@ def expedition(request, expeditionname):
|
||||
# Need to delete the existing entries or we get duplication
|
||||
# Need to delete both in the Django ORM and in our own object-store.
|
||||
entries = this_expedition.logbookentry_set.all()
|
||||
print(f'! - expo {expeditionname} {len(entries)} entries initially')
|
||||
for entry in entries:
|
||||
#print(f'! - delete entry: "{entry}"')
|
||||
entry.delete()
|
||||
entries = this_expedition.logbookentry_set.all()
|
||||
print(f'! - expo {expeditionname} {len(entries)} entries after deletion')
|
||||
LoadLogbookForExpedition(this_expedition)
|
||||
logged_in = True
|
||||
else:
|
||||
|
||||
Reference in New Issue
Block a user