Skip to content

fix classproperties in LiveServerTestCase #1288

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

Closed
wants to merge 1 commit into from
Closed

fix classproperties in LiveServerTestCase #1288

wants to merge 1 commit into from

Conversation

djbrown
Copy link
Contributor

@djbrown djbrown commented Dec 8, 2022

removes the classproperty decorator
and expresses type hint as simple attribute instead
this works because the two classproperty methods don't have any args
so the classproperties actually behave like readonly arguments

fixes #1285

removes the classproperty decorator
and expresses type hint as simple attribute instead
this works because the two classproperty methods don't have any args
so the classproperties actually behave like readonly arguments

fixes #1285
@intgr
Copy link
Collaborator

intgr commented Dec 8, 2022

Thanks! You created a PR just the same minute as I did, sorry for the duplicated work.

#1287 implements a more general fix for classproperty decorator.

@djbrown
Copy link
Contributor Author

djbrown commented Dec 8, 2022

better fix in #1287

@djbrown djbrown closed this Dec 8, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

Successfully merging this pull request may close these issues.

Model.object and djangos @classproperties not working since 1.13.1
2 participants