Skip to content
Snippets Groups Projects
Commit d2c97d64 authored by Saleem Latif's avatar Saleem Latif
Browse files

Fix 500 error when adding viewers to catalog.

parent d8d7e338
No related branches found
Tags release-2020-03-03-18.46
No related merge requests found
......@@ -218,7 +218,7 @@ class CatalogEditView(CatalogApiMixin, View):
response = client.catalogs(catalog_id).get()
catalog = Catalog(attributes=response)
return render_to_response(self.template_name, self.get_context_data(catalog, form, client), status=400)
catalog = client.catalogs(catalog_id).patch(form.instance.attributes)
catalog = client.catalogs(catalog_id).patch(form.cleaned_data)
return redirect(reverse('api_admin:catalog-edit', kwargs={'catalog_id': catalog['id']}))
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment