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

Commit

Permalink
Allow superusers to change the Contributor of a Source
Browse files Browse the repository at this point in the history
The ability to transfer the ownership of a "public list" to a contributor after
they sign up was lost when we transitioned to using the `Source` model and made
the `contributor` field read-only on the admin.
  • Loading branch information
jwalgran committed Nov 4, 2019
1 parent ef1e928 commit c84447b
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 @@ -12,6 +12,7 @@ and this project adheres to [Semantic Versioning](http://semver.org/spec/v2.0.0.
### Changed
- Replace facility history feature switch with feature flag [#881](https://github.com/open-apparel-registry/open-apparel-registry/pull/881)
- Better accommodate outside contributors [#895](https://github.com/open-apparel-registry/open-apparel-registry/pull/895)
- Allow superusers to change the Contributor of a Source [#901](https://github.com/open-apparel-registry/open-apparel-registry/pull/901)

### Deprecated

Expand Down
2 changes: 1 addition & 1 deletion src/django/api/admin.py
Original file line number Diff line number Diff line change
Expand Up @@ -108,7 +108,7 @@ class FacilityAliasAdmin(SimpleHistoryAdmin):


class SourceAdmin(admin.ModelAdmin):
readonly_fields = ('contributor', 'source_type', 'facility_list', 'create')
readonly_fields = ('source_type', 'facility_list', 'create')


admin_site.register(models.Version)
Expand Down

0 comments on commit c84447b

Please sign in to comment.