feat: Add ability to delete events for admins
This commit is contained in:
@@ -33,8 +33,8 @@ class Event(Base):
|
||||
team_prep_min: Mapped[int] = mapped_column(default=1, nullable=False)
|
||||
team_prep_max: Mapped[int] = mapped_column(default=1, nullable=False)
|
||||
|
||||
registrations: Mapped[list["Registration"]] = relationship("Registration")
|
||||
team: Mapped[list["TeamRegistration"]] = relationship("TeamRegistration")
|
||||
registrations: Mapped[list["Registration"]] = relationship("Registration", cascade="all, delete")
|
||||
team: Mapped[list["TeamRegistration"]] = relationship("TeamRegistration", cascade="all, delete")
|
||||
|
||||
def team_min_reached(self, work_type: WorkTypes):
|
||||
threshold = {
|
||||
|
||||
Reference in New Issue
Block a user