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

Fix for Django 2.1 decorators #76

Merged
merged 3 commits into from Sep 5, 2019
Merged

Fix for Django 2.1 decorators #76

merged 3 commits into from Sep 5, 2019

Conversation

cw0102
Copy link
Contributor

@cw0102 cw0102 commented Mar 13, 2019

This is a semi-hacky way to make django-stronghold work on Django 2.1

Additionally, added a couple views to the test project to make it easier to test the different methods of declaring a public view.

add additional public views
@cw0102
Copy link
Contributor Author

cw0102 commented Apr 15, 2019

I redid this to be less of a hack and make use of the existing django code.

I added a test in the previous commit, test_public_method_decorator_works_with_partials which was failing in python 2.7 due to some arcane difference in functools between python 2 and 3. I removed it for now but everything else looks good.

@cw0102 cw0102 changed the title Hack for Django 2.1 decorators Fix for Django 2.1 decorators Apr 15, 2019
@great3
Copy link

great3 commented Apr 15, 2019

Nice one

@pakal
Copy link

pakal commented Jun 6, 2019

This looks like a good fix, I guess it could be merged

@claudep
Copy link
Contributor

claudep commented Jun 24, 2019

@mgrouchy Could you please have a quick look at this patch and merge it if you find it's suitable. It would be great to have django 2.1/2.2 support.

@mgrouchy mgrouchy merged commit 407ea8a into mgrouchy:master Sep 5, 2019
@mgrouchy
Copy link
Owner

mgrouchy commented Sep 5, 2019

👍thank you!

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.

None yet

5 participants