[Patchew-devel] [PATCH] Fix: Model Message
Fam Zheng
famz at redhat.com
Fri Jun 29 09:22:17 UTC 2018
On Fri, 06/29 12:47, Shubham Jain wrote:
> While importing messages to the projects, the series wasn't updating like in the add_message_from_mbox(). Added in the create to support the REST api.
> ---
> api/models.py | 1 +
> 1 file changed, 1 insertion(+)
>
> diff --git a/api/models.py b/api/models.py
> index b4f8468..2068ffd 100644
> --- a/api/models.py
> +++ b/api/models.py
> @@ -294,6 +294,7 @@ class MessageManager(models.Manager):
> msg.save_mbox(mbox)
> msg.save()
> emit_event("MessageAdded", message=msg)
> + self.update_series(msg)
> return msg
>
> def add_message_from_mbox(self, mbox, user, project_name=None):
> --
> 2.15.1 (Apple Git-101)
>
> _______________________________________________
> Patchew-devel mailing list
> Patchew-devel at redhat.com
> https://www.redhat.com/mailman/listinfo/patchew-devel
Reviewed-by: Fam Zheng <famz at redhat.com>
More information about the Patchew-devel
mailing list