Skip to content

Enable middleware decorator to work in newer versions of Django#16

Merged
daneah merged 6 commits into
masterfrom
new-style-middleware
Aug 22, 2020
Merged

Enable middleware decorator to work in newer versions of Django#16
daneah merged 6 commits into
masterfrom
new-style-middleware

Conversation

@daneah

@daneah daneah commented Aug 22, 2020

Copy link
Copy Markdown
Member

Resolves #6

django-webmention provides both an old-style and a new-style middleware, but the provided decorator wrapped only the old-style middleware. By inheriting from django.utils.deprecation.MiddlewareMixin, the middleware and the decorator become compatible with both styles.

Leaving the standalone new-style middleware in for backward compatibility as well. Dropping support for Python 3.5 because Django 3.0+ no longer supports it.

Adding automation for releasing to GitHub releases and PyPI as I hadn't done that prior.

@daneah daneah added the bug label Aug 22, 2020
@daneah

daneah commented Aug 22, 2020

Copy link
Copy Markdown
Member Author

@philgyford have a look! Turned out to be similar to what we discussed.

@daneah daneah merged commit 94ccdae into master Aug 22, 2020
@daneah daneah deleted the new-style-middleware branch August 22, 2020 23:55
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

1 participant