mirror of https://github.com/logos-co/open-law.git
add sections to BookVersion
This commit is contained in:
parent
3899ed44e1
commit
3638ad3108
|
@ -20,6 +20,7 @@ class BookVersion(BaseModel):
|
|||
# Relationships
|
||||
book = db.relationship("Book", viewonly=True)
|
||||
derivative = db.relationship("BookVersion", remote_side=[id])
|
||||
sections = db.relationship("Section", viewonly=True)
|
||||
|
||||
def __repr__(self):
|
||||
return f"<{self.id}: {self.semver}>"
|
||||
|
|
Loading…
Reference in New Issue