added GetPublishers for use in book.html to make a publisher drop-down
This commit is contained in:
@@ -38,6 +38,11 @@ def publishers():
|
||||
publishers = Publisher.query.all()
|
||||
return render_template("show_id_name.html", objects=publishers, page_title='Show All Publishers', url_base='publisher')
|
||||
|
||||
def GetPublishers():
|
||||
publishers = Publisher.query.order_by('name').all()
|
||||
return publishers
|
||||
|
||||
|
||||
################################################################################
|
||||
# /publisher/<id> -> GET/POST(save or delete) -> shows/edits/delets a single publisher
|
||||
################################################################################
|
||||
|
||||
Reference in New Issue
Block a user