]> git.ipfire.org Git - thirdparty/patchwork.git/commit
models, templates: Add patch relations
authorMete Polat <metepolat2000@gmail.com>
Thu, 27 Feb 2020 23:29:31 +0000 (23:29 +0000)
committerDaniel Axtens <dja@axtens.net>
Sun, 15 Mar 2020 23:05:51 +0000 (10:05 +1100)
commit27c2acf56cd30e77c932a1dde87b6fc1de8eeb2c
treef73e8dd6d047c6ac1c310b427445f7fd679d0852
parent00808edcfe99689324dc6b28ef1b70dd4d7ab224
models, templates: Add patch relations

Introduces the ability to add relations between patches. Relations are
displayed in the details page of a patch under 'Related'. Related
patches located in another projects can be viewed as well.

Changes to relations are tracked in events. Currently the display of
this is very bare in the API but that will be fixed in a subsequent patch:
this is the minimum required to avoid throwing errors when you view the
events feed.

Signed-off-by: Mete Polat <metepolat2000@gmail.com>
[dja: address some review comments from Stephen, add an admin view,
      move to using Events, misc tidy-ups.]
Signed-off-by: Daniel Axtens <dja@axtens.net>
patchwork/admin.py
patchwork/api/event.py
patchwork/migrations/0040_add_related_patches.py [new file with mode: 0644]
patchwork/models.py
patchwork/signals.py
patchwork/templates/patchwork/submission.html
patchwork/views/patch.py