Commit 7e2abdd9 authored by Matthieu Fesselier's avatar Matthieu Fesselier

update: add owner_field

parent baee5f47
Pipeline #4842 passed with stage
in 27 seconds
......@@ -11,6 +11,7 @@ class Conversation(Model):
class Meta:
auto_author = 'author_user'
owner_field = 'author_user'
ordering = ['-dateCreated']
container_path = "conversations"
nested_fields = ["message_set", "author_user"]
......@@ -31,6 +32,7 @@ class Message(Model):
class Meta:
auto_author = 'author_user'
owner_field = 'author_user'
ordering = ['dateCreated']
container_path = "messages"
nested_fields = ["author_user"]
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment