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

issue #35244: resolution with a reference to the view function does not work in case of an .app_name. #17896

Closed
wants to merge 2 commits into from

Conversation

KommuSoft
Copy link
Contributor

The view function references were not backpropagated, now these are backpropagated by checking if this is a view function, and if so thus added to the parent .reverse_dict. The approach is however a bit hacky and thus might be redesigned.

cref: https://code.djangoproject.com/ticket/35244
cref: https://stackoverflow.com/questions/78035103/in-django-is-it-possible-to-use-reverse-redirect-with-a-view-function-not-stri

Willem Van Onsem added 2 commits February 21, 2024 16:46
The view function references were *not* backpropagated, now these are backpropagated by checking if this is a view function, and if so thus added to the parent `.reverse_dict`. The approach is however a bit hacky and thus might be redesigned.

Fixing #35244
cref: https://code.djangoproject.com/ticket/35244
cref: https://stackoverflow.com/questions/78035103/in-django-is-it-possible-to-use-reverse-redirect-with-a-view-function-not-stri
The view function references were *not* backpropagated, now these are backpropagated by checking if this is a view function, and if so thus added to the parent `.reverse_dict`. The approach is however a bit hacky and thus might be redesigned.

Fixing #35244
cref: https://code.djangoproject.com/ticket/35244
cref: https://stackoverflow.com/questions/78035103/in-django-is-it-possible-to-use-reverse-redirect-with-a-view-function-not-stri
@felixxm
Copy link
Member

felixxm commented Feb 22, 2024

Closing per ticket.

@felixxm felixxm closed this Feb 22, 2024
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.

2 participants