update docs, cleaning
This commit is contained in:
@ -1,5 +1,3 @@
|
||||
from typing import Optional, Union, List
|
||||
|
||||
import databases
|
||||
import sqlalchemy
|
||||
|
||||
@ -27,6 +25,4 @@ class Artist(ormar.Model):
|
||||
first_name: str = ormar.String(name="fname", max_length=100)
|
||||
last_name: str = ormar.String(name="lname", max_length=100)
|
||||
born_year: int = ormar.Integer(name="year")
|
||||
children: Optional[Union[Child, List[Child]]] = ormar.ManyToMany(
|
||||
Child, through=ArtistChildren
|
||||
)
|
||||
children = ormar.ManyToMany(Child, through=ArtistChildren)
|
||||
|
||||
Reference in New Issue
Block a user