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

Fixed #24904 -- Fixed nested namespaces in current_app. #4743

Closed
wants to merge 1 commit into from

Conversation

knbk
Copy link
Contributor

@knbk knbk commented Jun 3, 2015

Fixed reverse() to correctly handled nested namespace lookups
in current_app.

https://code.djangoproject.com/ticket/24904

@@ -574,6 +574,25 @@ def test_namespaces_with_variables(self):
self.assertEqual('/inc70/', reverse('inc-ns5:inner-nothing', args=['70']))
self.assertEqual('/inc78/extra/foobar/', reverse('inc-ns5:inner-extra', args=['78', 'foobar']))

def test_nested_app_lookup(self):
"A nested current_app should be split in individual namespaces: see #24904"
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

namespaces (#24904).

@timgraham
Copy link
Member

For the tests, I really much prefer the indentation I suggested. Indenting a non-multiple of 4 number of spaces and cramming everything on the right side is not very readable in my opinion.

Fixed reverse() to correctly handled nested namespace lookups
in current_app.
@timgraham
Copy link
Member

merged in f0450c9, thanks!

@timgraham timgraham closed this Jun 5, 2015
@knbk knbk deleted the current_app_nesting branch November 12, 2016 19:45
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
2 participants