]> git.ipfire.org Git - thirdparty/patchwork.git/commit
models: Add 'project' field to Series
authorStephen Finucane <stephen@that.guru>
Fri, 6 Jan 2017 15:51:05 +0000 (15:51 +0000)
committerStephen Finucane <stephen@that.guru>
Sun, 22 Jan 2017 21:36:24 +0000 (21:36 +0000)
commite3cbe4939b6589631d962a51469ab5b550d58e92
treef0066090157a635a2b0a89f6e518853f0001b7d3
parentb3869768ab9667c542434eb7e4ca5ddda703d8a6
models: Add 'project' field to Series

This is helpful for filtering. We use RunPython because folks are likely
to have few if any Series objects existing yet. In addition, we update
the unique constraints for SeriesReference as it's now possible to
handle messages with duplicate message IDs.

The update is included in parser to ensure this applies immediately.

Signed-off-by: Stephen Finucane <stephen@that.guru>
Reviewed-by: Andy Doan <andy.doan@linaro.org>
patchwork/migrations/0016_series_project.py [new file with mode: 0644]
patchwork/models.py
patchwork/parser.py
patchwork/tests/test_parser.py
patchwork/tests/test_rest_api.py
patchwork/tests/test_series.py
patchwork/tests/utils.py