Skip to content

Commit

Permalink
Merge pull request #64 from Afnarel/fix_middle_slash_removed_by_replace
Browse files Browse the repository at this point in the history
Fix middle slash removed by replace
  • Loading branch information
ekonstantinidis committed Feb 24, 2016
2 parents bc14579 + 354c1bb commit e3a3aac
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion rest_framework_docs/api_endpoint.py
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ def __init__(self, pattern, parent_pattern=None):
self.callback = pattern.callback
# self.name = pattern.name
self.docstring = self.__get_docstring__()
self.name_parent = simplify_regex(parent_pattern.regex.pattern).replace('/', '') if parent_pattern else None
self.name_parent = simplify_regex(parent_pattern.regex.pattern).strip('/') if parent_pattern else None
self.path = self.__get_path__(parent_pattern)
self.allowed_methods = self.__get_allowed_methods__()
# self.view_name = pattern.callback.__name__
Expand Down

0 comments on commit e3a3aac

Please sign in to comment.