Skip to content

Resolve 500 error when creating product with null attribute value#374

Merged
samar-hassan merged 1 commit intodjango-oscar:mainfrom
mfarhan943:fix-null-attribute
Jul 22, 2025
Merged

Resolve 500 error when creating product with null attribute value#374
samar-hassan merged 1 commit intodjango-oscar:mainfrom
mfarhan943:fix-null-attribute

Conversation

@mfarhan943
Copy link
Copy Markdown
Contributor

##Description
This update prevents potential 500 errors by properly handling null or empty values in ProductAttributeValueSerializer.
Includes a test case to ensure serializer stability with null attribute values.

Resolves: #342

@samar-hassan samar-hassan merged commit 56a7896 into django-oscar:main Jul 22, 2025
21 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Empty attribute values cause an exception

2 participants