-
-
Notifications
You must be signed in to change notification settings - Fork 3.1k
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
details view should be class based #4646
Comments
Why not using |
Fine. So I put refactoring the view on my own todo list and make a pull request some time. |
@philippze awesome! |
I'm working on this issue today. I'm proceeding in small steps, try to change no logic, and the tests still work. However, the code in |
…code & needs minimal resources.
…_url_if_appropriate
The details view is a function of more than 100 lines which makes it difficult to extend it. A class based version would make it much easier to create little modifications.
This is my use case:
Currently this would be done with a middleware where one must determine the requested Page object a second time. It would be easier and more efficient if one could simply override some function in the view code.
The text was updated successfully, but these errors were encountered: