Skip to content

Commit 8cf7e38

Browse files
bugfix optiongroupserializer missing (#344)
* bugfix optiongroupserializer missing * small change * small change v2 * fix small stuff
1 parent da010c8 commit 8cf7e38

File tree

2 files changed

+3
-2
lines changed

2 files changed

+3
-2
lines changed

Makefile

+2-2
Original file line numberDiff line numberDiff line change
@@ -18,10 +18,10 @@ test:
1818
python sandbox/manage.py test oscarapi --settings=sandbox.settings.block_admin_api_true
1919
python sandbox/manage.py test oscarapi --settings=sandbox.settings.block_admin_api_false
2020

21-
coverage:
22-
coverage run sandbox/manage.py test oscarapi --settings=sandbox.settings.block_admin_api_true
21+
coverage:
2322
coverage run sandbox/manage.py test oscarapi --settings=sandbox.settings.block_admin_api_false
2423
coverage report -m
24+
coverage html
2525
coverage xml -i
2626

2727
docker-build:

oscarapi/serializers/product.py

+1
Original file line numberDiff line numberDiff line change
@@ -187,6 +187,7 @@ class Meta:
187187

188188

189189
class OptionSerializer(OscarHyperlinkedModelSerializer):
190+
option_group = AttributeOptionGroupSerializer(required=False, allow_null=True)
190191
code = serializers.SlugField()
191192

192193
class Meta:

0 commit comments

Comments
 (0)