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

REFACTOR: replace urlencode with django build in #271

Open
Segelzwerg opened this issue Dec 18, 2024 · 0 comments
Open

REFACTOR: replace urlencode with django build in #271

Segelzwerg opened this issue Dec 18, 2024 · 0 comments
Labels
internal Issues that have no impact on the user

Comments

@Segelzwerg
Copy link
Owner

With the next release of Django use reverse with query argument.

next_url = reverse('customer-update', args=[self.kwargs['pk']])
base_url = reverse('login')
url = '{}?{}'.format(base_url, urlencode({'next': next_url})) # pylint: disable=consider-using-f-string

https://docs.djangoproject.com/en/dev/ref/urlresolvers/

@Segelzwerg Segelzwerg added the internal Issues that have no impact on the user label Dec 18, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
internal Issues that have no impact on the user
Projects
None yet
Development

No branches or pull requests

1 participant