See #170: use new content obj for channel description

This commit is contained in:
Eliot Berriot 2020-01-15 13:43:25 +01:00
parent e6f8b6e406
commit cfc88847a6
No known key found for this signature in database
GPG key ID: 6B501DFD73514E14
7 changed files with 62 additions and 21 deletions

View file

@ -305,3 +305,4 @@ def attach_content(obj, field, content_data):
)
setattr(obj, field, content_obj)
obj.save(update_fields=[field])
return content_obj