Skip to content

Commit

Permalink
Delete unassigned converted dealers
Browse files Browse the repository at this point in the history
We weren't actually doing anything to unassigned badges when a dealer group was converted. The fact that we deleted the group they were in thus automatically kicked them to "New" status which made them count against the cap. This is not desired.
  • Loading branch information
kitsuta committed Jan 12, 2025
1 parent f08d0dc commit 918454e
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions uber/site_sections/dealer_admin.py
Original file line number Diff line number Diff line change
Expand Up @@ -120,6 +120,8 @@ def decline_and_convert_dealer_group(session, group, status=c.DECLINED, admin_no
elif not delete_group:
attendee.badge_status = c.INVALID_GROUP_STATUS
attendee.paid = c.NOT_PAID
else:
session.delete(attendee)

if delete_group:
attendee.group = None
Expand Down

0 comments on commit 918454e

Please sign in to comment.