diff --git a/the_works/models.py b/the_works/models.py index 8e73a93..e87861b 100644 --- a/the_works/models.py +++ b/the_works/models.py @@ -50,7 +50,7 @@ class Herausgeber(Base): __tablename__ = 'Herausgeber' ID: Mapped[int] = mapped_column(primary_key=True) - Name: Mapped[str] = mapped_column(CheckConstraint('Herausgeber <> ""', name='HerausgeberNotEmptyConstraint'), nullable=False, unique=True) + Name: Mapped[str] = mapped_column(CheckConstraint('Name <> ""', name='HerausgeberNotEmptyConstraint'), nullable=False, unique=True) werke: Mapped[List['Werk_Herausgeber']] = relationship(back_populates='herausgeber')