patchwork:master

Last commit made on 2020-10-01
Get this branch:
git clone -b master https://git.launchpad.net/patchwork

Branch merges

Branch information

Name:
master
Repository:
lp:patchwork

Recent commits

bdb049c... by Stephen Finucane <email address hidden> on 2020-10-01

requirements: Update doc requirements

Signed-off-by: Stephen Finucane <email address hidden>

efcef74... by Stephen Finucane <email address hidden> on 2020-10-01

requirements: Bump mysqlclient to 2.0.0

Signed-off-by: Stephen Finucane <email address hidden>

17ed8a2... by Stephen Finucane <email address hidden> on 2020-10-01

requirements: Bump django-debug-toolbar to 3.1.x

Signed-off-by: Stephen Finucane <email address hidden>

875f886... by Stephen Finucane <email address hidden> on 2020-10-01

requirements: Bump django-filter to 2.4.0

Signed-off-by: Stephen Finucane <email address hidden>

8a705e3... by Stephen Finucane <email address hidden> on 2020-10-01

Add support for djangorestframework 3.12

No changes necessary.

Signed-off-by: Stephen Finucane <email address hidden>

b7a6df9... by Thomas Bracht Laumann Jespersen <email address hidden> on 2020-09-28

models: Validate Project.linkname does not contain forward slash

I started by creating a project that contained a forward slash
(importing patches from https://lists.sr.ht/~sircmpwn/sr.ht-dev/) and
it fails to render the "projects" main page.

The specific error reads:

    NoReverseMatch at /

    Reverse for 'patch-list' with keyword arguments
    '{'project_id': 'foo/bar'}' not found. 1 pattern(s) tried:
    ['project/(?P<project_id>[^/]+)/list/$']

which appears to explicitly disallow forward slashes.

So I think it makes sense to validate that project linkname doesn't
contain forward slahes.

This implementation uses the validate_unicode_slug validator instead of just
rejecting inputs that contain forward slashes.

Signed-off-by: Thomas Bracht Laumann Jespersen <email address hidden>
Signed-off-by: Stephen Finucane <email address hidden>
Closes: #380

8f40045... by Andrew Donnellan <email address hidden> on 2020-08-27

Add support for Django 3.1

Signed-off-by: Andrew Donnellan <email address hidden>
Reviewed-by: Stephen Finucane <email address hidden>

02fc429... by Andrew Donnellan <email address hidden> on 2020-08-27

requirements: Update django-filter

Update django-filter dependency to a version that's compatible with Django
3.1.

Signed-off-by: Andrew Donnellan <email address hidden>
Reviewed-by: Stephen Finucane <email address hidden>

490fe2b... by Andrew Donnellan <email address hidden> on 2020-08-27

settings: Add context processor django.template.context_processors.request

Django 3.1 adds a new admin sidebar feature that requires the
django.template.context_processors.request context processor to be enabled
in the settings.

Signed-off-by: Andrew Donnellan <email address hidden>
Reviewed-by: Stephen Finucane <email address hidden>

24debb5... by Andrew Donnellan <email address hidden> on 2020-08-27

urls: Update url pattern functions

Django 3.1 deprecates django.conf.urls.url() as an alias for
django.urls.re_path(). Also switch to using django.urls.include() rather
than django.conf.urls.include().

Signed-off-by: Andrew Donnellan <email address hidden>
Signed-off-by: Stephen Finucane <email address hidden>