FIX(promotions): resolve user UUID before saving application events #3

Merged
Ghasemi merged 1 commit from feature/debug-v2 into master 2026-08-18 07:05:15 -04:00
Collaborator

ApplicationEventViewSet.perform_create() was passing the full request.user
model instance into Event.user (a plain UUIDField), which raises on every
real call. Use the same _resolve_user() -> user.uuid pattern already used by
status(), and raise UnprocessableEntity on save_event failure to match the
v1 endpoint's error-handling convention.

ApplicationEventViewSet.perform_create() was passing the full request.user model instance into Event.user (a plain UUIDField), which raises on every real call. Use the same _resolve_user() -> user.uuid pattern already used by status(), and raise UnprocessableEntity on save_event failure to match the v1 endpoint's error-handling convention.
ali added 1 commit 2026-08-18 06:57:05 -04:00
ApplicationEventViewSet.perform_create() was passing the full request.user
model instance into Event.user (a plain UUIDField), which raises on every
real call. Use the same _resolve_user() -> user.uuid pattern already used by
status(), and raise UnprocessableEntity on save_event failure to match the
v1 endpoint's error-handling convention.
Ghasemi merged commit 079c795065 into master 2026-08-18 07:05:15 -04:00
Ghasemi deleted branch feature/debug-v2 2026-08-18 07:05:15 -04:00
Sign in to join this conversation.
No reviewers
No labels
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference: addwin/promotions#3
No description provided.