Skip to content

Commit

Permalink
direct assignment upgrade for Django 3
Browse files Browse the repository at this point in the history
  • Loading branch information
John Tordoff authored and cslzchen committed Aug 16, 2022
1 parent 75ffbb0 commit ff5ea9a
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion admin/meetings/views.py
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,7 @@ def form_valid(self, form):
custom_fields, data = get_custom_fields(form.cleaned_data)
if 'admins' in form.changed_data:
admin_users = get_admin_users(data.get('admins'))
self.conf.admins = admin_users
self.conf.admins.set(admin_users)
self.conf.name = data.get('name')
self.conf.info_url = data.get('info_url')
self.conf.logo_url = data.get('logo_url')
Expand Down
2 changes: 1 addition & 1 deletion api_tests/preprints/views/test_preprint_detail.py
Original file line number Diff line number Diff line change
Expand Up @@ -1200,7 +1200,7 @@ def no_license(self):
@pytest.fixture()
def preprint_provider(self, cc0_license, no_license):
preprint_provider = PreprintProviderFactory()
preprint_provider.licenses_acceptable = [cc0_license, no_license]
preprint_provider.licenses_acceptable.add(*[cc0_license, no_license])
preprint_provider.save()
return preprint_provider

Expand Down

0 comments on commit ff5ea9a

Please sign in to comment.