Skip to content

Router doesn't work if prefix is blank, though project urls.py handles prefix #4486

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

Closed
wants to merge 2 commits into from

Conversation

c17r
Copy link

@c17r c17r commented Sep 14, 2016

No description provided.

@tomchristie
Copy link
Member

Thanks for this!

@tomchristie tomchristie added this to the 3.4.7 Release milestone Sep 15, 2016
It's easiest to fix this issue after we have made the regex.  To try
to fix it before would require doing something different for List vs
Detail, which means we'd have to know which type of url we're
constructing before acting accordingly.
c17r added a commit to c17r/drf-nested-routers that referenced this pull request Sep 15, 2016
…s prefix

It's easiest to fix this issue after we have made the regex.  To try
to fix it before would require doing something different for List vs
Detail, which means we'd have to know which type of url we're
constructing before acting accordingly.

Same issue with DRF itself, see encode/django-rest-framework#4486
@c17r
Copy link
Author

c17r commented Sep 18, 2016

Got distracted and forgot to put a note here about adding a possible solution.

@tomchristie tomchristie modified the milestones: 3.4.7 Release, 3.4.8 Release Sep 21, 2016
@tomchristie tomchristie modified the milestones: 3.4.8 Release, 3.5.0 Release Sep 29, 2016
@tomchristie
Copy link
Member

Thanks for this work - great stuff!
Now merged into the version-3-5 branch at #4525

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants