Keeping flask-marshmallow as its too hard to do my own objects, due to SqlAlchemy using its own list that is not iterable, etc. Added Genre, ALSO, beware table names with an underscore are messed with, and should be explictly defined - found out this the hard way with genre_lst

This commit is contained in:
2020-11-08 15:07:36 +11:00
parent 761d2af391
commit c4fe3422a3
2 changed files with 32 additions and 12 deletions

View File

@@ -73,6 +73,7 @@
</form>
</div class="row">
</div class="container">
{{books.genre}}
{% if books.sub_book is defined %}
<p>sub_book is defined: {{books.sub_book}}</p>
{% endif %}