Skip to content

Conversation

RandomProgramm3r
Copy link
Owner

PATCH requests to update fields (like description or image_url) on promos with mode='UNIQUE' failed. The validator incorrectly required the promo_unique field to be present in the input data.

This commit removes the erroneous check for promo_unique presence from the PromoDetailSerializer.validate method when handling updates for UNIQUE promos, allowing partial updates to proceed correctly.

PATCH requests to update fields (like description or image_url) on promos with mode='UNIQUE' failed. The validator incorrectly required the `promo_unique` field to be present in the input data. This commit removes the erroneous check for `promo_unique` presence from the `PromoDetailSerializer.validate` method when handling updates for UNIQUE promos, allowing partial updates to proceed correctly.
@RandomProgramm3r RandomProgramm3r merged commit 7edf873 into main Apr 15, 2025
2 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

1 participant