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:
@@ -65,3 +65,7 @@ def condition(id):
|
||||
condition_form = ConditionForm(request.values, obj=condition)
|
||||
message=""
|
||||
return render_template("edit_id_name.html", condition=condition, alert=alert, message=message, form=condition_form, page_title='Edit Condition')
|
||||
|
||||
def GetConditionById(id):
|
||||
return Condition.query.get(id).name
|
||||
|
||||
|
||||
Reference in New Issue
Block a user