Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Modernize middleware #296

Merged
merged 3 commits into from
Aug 15, 2018
Merged

Modernize middleware #296

merged 3 commits into from
Aug 15, 2018

Conversation

gforcada
Copy link
Contributor

As django-silk no longer supports django < 1.10 the MiddlewareMixin is
no longer needed.

As django-silk no longer supports django < 1.10 the MiddlewareMixin is
no longer needed.
@@ -57,7 +56,19 @@ def process_request(self, request):
return


class SilkyMiddleware(MiddlewareMixin):
class SilkyMiddleware(object):
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This shouldn't need to inherit from object anymore since we are now python 3.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks for the review, indeed, that is no longer needed.

Unfortunately I'm going on vacations and I can not fix that myself, I could gladly do that as soon as I'm back around August 15th

@gforcada
Copy link
Contributor Author

@albertyw I fixed your review. Would you mind getting another look? TIA!

@avelis avelis merged commit 34ad9dd into jazzband:master Aug 15, 2018
@gforcada gforcada deleted the modernize-middleware branch August 15, 2018 18:28
@gforcada
Copy link
Contributor Author

@avelis thanks!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants