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:
2
main.py
2
main.py
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user