Skip to content
This repository has been archived by the owner on Jan 11, 2021. It is now read-only.

fix recursive prefix in __flatten_patterns_tree #12

Merged
merged 3 commits into from
Sep 5, 2013
Merged

fix recursive prefix in __flatten_patterns_tree #12

merged 3 commits into from
Sep 5, 2013

Conversation

postfalk
Copy link

Changed one line in urlparser.flatten_pattern_tree to allow recursion into lower levels which is necessary when DRFs new routers (which appear as URLResolvers including a list instead of a module) are used in an app level urls.py. In the original version the prefix of the higher level was lost.

Did not add tests yet. Will improve if not merged by 8/16/2013

Falk

@postfalk
Copy link
Author

It works for several apps now. Made test more sophisticated. Did not test the import over more than two levels yet.

@marcgibbons
Copy link
Owner

thanks for this! sorry it took so long to check in... merged into a new release and will update shortyl
+1 for added tests 👍

@marcgibbons marcgibbons merged commit c56e25a into marcgibbons:master Sep 5, 2013
lucasnad27 pushed a commit to lucasnad27/django-rest-swagger that referenced this pull request May 31, 2016
fixed  marcgibbons#11 - no need to wrap the class, only to add the model
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants