Skip to content

Commit

Permalink
Don't delete panel applicants on attendee delete
Browse files Browse the repository at this point in the history
I'm sick of manually handling duplicate registrations that only exist because we created a new badge for a panel. This change will let me just delete the extra attendee and re-associate the panelist to the existing attendee.
  • Loading branch information
kitsuta committed Dec 11, 2024
1 parent bd77fbc commit 5adee34
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion uber/models/panels.py
Original file line number Diff line number Diff line change
Expand Up @@ -210,7 +210,7 @@ def has_been_accepted(self):

class PanelApplicant(SocialMediaMixin, MagModel):
app_id = Column(UUID, ForeignKey('panel_application.id', ondelete='cascade'))
attendee_id = Column(UUID, ForeignKey('attendee.id', ondelete='cascade'), nullable=True)
attendee_id = Column(UUID, ForeignKey('attendee.id', ondelete='SET NULL'), nullable=True)
submitter = Column(Boolean, default=False)
first_name = Column(UnicodeText)
last_name = Column(UnicodeText)
Expand Down

0 comments on commit 5adee34

Please sign in to comment.