moved to using a Get*ById() in condition, covertype, owned files and exposing them in jinja and using them in books.html to fix-up the fact those columns were now raw forein keys (ids)

This commit is contained in:
2020-11-22 00:23:18 +11:00
parent 1edf5082c7
commit 9466e61db9
5 changed files with 31 additions and 10 deletions

View File

@@ -65,3 +65,6 @@ def owned(id):
owned_form = OwnedForm(request.values, obj=owned)
message=""
return render_template("edit_id_name.html", owned=owned, alert=alert, message=message, form=owned_form, page_title='Edit Owned Type' )
def GetOwnedById(id):
return Owned.query.get(id).name