-
Notifications
You must be signed in to change notification settings - Fork 162
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
bugfix optiongroupserializer missing #344
bugfix optiongroupserializer missing #344
Conversation
This fixes the problem mentioned at #324 ! |
oscarapi/serializers/product.py
Outdated
@@ -186,6 +186,7 @@ class Meta: | |||
|
|||
|
|||
class OptionSerializer(OscarHyperlinkedModelSerializer): | |||
option_group = AttributeOptionGroupSerializer() |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Hi, I think this should be optional, the tests are failing atm!
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Also I think it is important to demonstrate the problem in a test, to make sure there are no regressions in the future
@specialunderwear when this is not applied i get errors on admin endpoints when i set: |
Makefile
Outdated
@@ -22,7 +22,7 @@ coverage: | |||
coverage run sandbox/manage.py test oscarapi --settings=sandbox.settings.block_admin_api_true | |||
coverage run sandbox/manage.py test oscarapi --settings=sandbox.settings.block_admin_api_false | |||
coverage report -m | |||
coverage xml -i | |||
coverage xml -i |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This has to be a tab, you broke the tests by making them spaces
This reverts commit 8cf7e38.
…erializer Revert "bugfix optiongroupserializer missing (#344)"
Added:
option_group = AttributeOptionGroupSerializer()
to:
class OptionSerializer(OscarHyperlinkedModelSerializer):
in file: oscarapi/serializers/product.py