books_for_series now deals with sub books (hiding ability to reorder them in series), and disables first book (parent or normal) and last book (normal or parent of last sub-book)

This commit is contained in:
2020-11-25 17:53:05 +11:00
parent 725c362663
commit 606c3615cf
3 changed files with 29 additions and 14 deletions

View File

@@ -109,7 +109,7 @@ class BookSchema(ma.SQLAlchemyAutoSchema):
publisher = ma.Nested(PublisherSchema, many=True)
genre = ma.Nested(GenreSchema, many=True)
loan = ma.Nested(LoanSchema, many=True)
series = ma.Nested(Book_Series_LinkSchema, many=True)
series = ma.Nested(SeriesSchema, many=True)
parent_ref = ma.Nested(Book_Sub_Book_LinkSchema, many=True)
child_ref = ma.Nested(Book_Sub_Book_LinkSchema, many=True)
class Meta: model = Book