changed publisher link over to a 1-to-many, removed book_publisher_link table, etc. fully works in show books, edit book for publisher now

This commit is contained in:
2020-12-03 19:19:28 +11:00
parent a6cfb21d17
commit 3d12edab63
2 changed files with 7 additions and 10 deletions

View File

@@ -68,3 +68,6 @@ def publisher(id):
publisher_form = PublisherForm(request.values, obj=publisher)
message=""
return render_template("edit_id_name.html", publisher=publisher, alert=alert, message=message, form=publisher_form, page_title='Edit Publisher')
def GetPublisherById(id):
return Publisher.query.get(id).name