]> git.ipfire.org Git - thirdparty/patchwork.git/commit
parser: Use 'objects.create' instead of 'save'
authorStephen Finucane <stephen@that.guru>
Tue, 11 Sep 2018 22:39:54 +0000 (16:39 -0600)
committerStephen Finucane <stephen@that.guru>
Wed, 31 Oct 2018 10:49:50 +0000 (10:49 +0000)
commita86415c81f8f661a409baf1c33d766aa90945f37
treed37fcc8ad2e38e7a71bcb250bb45627db69a42f9
parent007af9f99ddc89da58f7ce055037724c7c5ba383
parser: Use 'objects.create' instead of 'save'

As noted in the Django documentation [1], this lets us do things in one
step.

[1] https://docs.djangoproject.com/en/dev/topics/db/queries/#creating-objects

Signed-off-by: Stephen Finucane <stephen@that.guru>
Acked-by: Daniel Axtens <dja@axtens.net>
patchwork/parser.py