-
Notifications
You must be signed in to change notification settings - Fork 2.6k
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
Closes #18023: Employ register_model_view()
for list views
#18029
Conversation
@@ -1,89 +1,39 @@ | |||
from django.urls import include, path | |||
|
|||
from utilities.urls import get_model_urls | |||
from . import views | |||
from . import views # noqa F401 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I do feel like these ought to be avoided, if just because they make things less clear.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Agreed, but we need to import the views somehow. If not here, we could do it under the ready()
method for each app.
Closes: #18023
register_model_view()
andget_model_urls()
to support list viewsregister_model_view()
as we do currently for detail views