Skip to content
This repository has been archived by the owner on Feb 1, 2024. It is now read-only.

Commit

Permalink
Merge pull request #1567 from open-apparel-registry/tw/fix-embed-cont…
Browse files Browse the repository at this point in the history
…ributor

Fix contributor id bug
  • Loading branch information
TaiWilkin committed Dec 27, 2021
2 parents 0f5b14b + c458936 commit 8087fba
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,7 @@ and this project adheres to [Semantic Versioning](http://semver.org/spec/v2.0.0.

- Use newer version of terraform container to avoid CI error [#1566](https://github.com/open-apparel-registry/open-apparel-registry/pull/1566)
- Add contributor fields to facility downloads [#1565](https://github.com/open-apparel-registry/open-apparel-registry/pull/1565)
- Fix contributor id bug [#1567](https://github.com/open-apparel-registry/open-apparel-registry/pull/1567)

### Security

Expand Down
2 changes: 1 addition & 1 deletion src/django/api/serializers.py
Original file line number Diff line number Diff line change
Expand Up @@ -80,7 +80,7 @@ def get_embed_contributor_id(serializer):

contributor = request.query_params.get('contributor', None)
if contributor is None:
contributors = request.query_params.get('contributors', [])
contributors = request.query_params.getlist('contributors', [])
if contributors is not None and len(contributors) > 0:
contributor = contributors[0]

Expand Down

0 comments on commit 8087fba

Please sign in to comment.