]> git.ipfire.org Git - thirdparty/patchwork.git/commit
compat: Handle older versions of django-filter
authorStephen Finucane <stephen@that.guru>
Tue, 4 Apr 2017 21:38:17 +0000 (22:38 +0100)
committerStephen Finucane <stephen@that.guru>
Fri, 28 Apr 2017 21:19:57 +0000 (22:19 +0100)
commite8b60ac12a2fc339109f851da1cb543a220b7300
tree6bb72e9b502c12ef47a96e888cbba6fea8883af7
parentc565029962be8f812555c6f9d782a5053e0e3942
compat: Handle older versions of django-filter

Recent versions of Django REST Framework (DRF) have deprecated the
'DjangoFilterBackend' filter found in-tree, in favour of an equivalent
implementation found in django-filter. However, we need to support older
versions of DRF for users who want to use system packages.

Seeing as the two implementations are, for all intents and purposes,
essentially the same thing, provide a shim that will allow us to use
both together.

Signed-off-by: Stephen Finucane <stephen@that.guru>
Partial-bug: #94
patchwork/api/filters.py
patchwork/compat.py
patchwork/settings/base.py