Correction enumérations
This commit is contained in:
@ -6,6 +6,7 @@ from sqlalchemy import Boolean, Date, Enum, ForeignKey, Integer, String
|
||||
from sqlalchemy.orm import mapped_column, Mapped, relationship
|
||||
|
||||
from nupes.models import Base, Region, Departement, Commune, Circonscription
|
||||
from nupes.models.base import Genre
|
||||
|
||||
|
||||
class BlocLegislatives2022(Base):
|
||||
@ -46,10 +47,6 @@ class NuanceLegislatives2022(Base):
|
||||
|
||||
|
||||
class CandidatLegislatives2022(Base):
|
||||
class Genre(enum.Enum):
|
||||
MASCULIN = "M"
|
||||
FEMININ = "F"
|
||||
|
||||
__tablename__ = "legislatives_2022_candidat"
|
||||
|
||||
id: Mapped[int] = mapped_column(primary_key=True)
|
||||
|
Reference in New Issue
Block a user