Sélection du type d'affichage
This commit is contained in:
@ -27,6 +27,7 @@ class Departement(Base):
|
||||
geometry: Mapped[dict] = mapped_column(JSON())
|
||||
|
||||
region: Mapped[Region] = relationship(Region, back_populates="departements")
|
||||
circonscriptions: Mapped[List["Circonscription"]] = relationship("Circonscription", back_populates="departement")
|
||||
communes: Mapped[List["Commune"]] = relationship("Commune", back_populates="departement")
|
||||
|
||||
resultats2024 = relationship("ResultatsDepartement", back_populates="departement")
|
||||
@ -54,7 +55,7 @@ class Circonscription(Base):
|
||||
numero: Mapped[int] = mapped_column(Integer())
|
||||
geometry: Mapped[dict] = mapped_column(JSON())
|
||||
|
||||
departement: Mapped[Departement] = relationship(Departement)
|
||||
departement: Mapped[Departement] = relationship(Departement, back_populates="circonscriptions")
|
||||
bureaux_vote: Mapped[List["BureauVote"]] = relationship("BureauVote", back_populates="circonscription")
|
||||
|
||||
resultats2024 = relationship("ResultatsCirconscription", back_populates="circonscription")
|
||||
|
Reference in New Issue
Block a user