Skip to content

Commit

Permalink
OpenConceptLab/ocl_issues#1551 | removed deprecated importers urls fr…
Browse files Browse the repository at this point in the history
…om root view
  • Loading branch information
snyaggarwal committed May 14, 2023
1 parent f962b62 commit 16c9a45
Showing 1 changed file with 5 additions and 4 deletions.
9 changes: 5 additions & 4 deletions core/common/views.py
Original file line number Diff line number Diff line change
Expand Up @@ -784,10 +784,11 @@ def get(self, _):
if name in ['admin']:
continue
route = str(pattern.pattern)
if route in ['v1-importers/']:
continue
if isinstance(route, str) and route.startswith('admin/'):
continue
if isinstance(route, str):
if any(route.startswith(path) for path in ['admin/', 'manage/bulkimport/', 'oidc/']):
continue
if route.startswith('^\\'):
route = route.replace('^\\', '')
if route and name is None:
name = route.split('/', maxsplit=1)[0] + '_urls'
if name == 'user_urls':
Expand Down

0 comments on commit 16c9a45

Please sign in to comment.