mirror of
https://github.com/encode/django-rest-framework.git
synced 2025-08-04 20:40:14 +03:00
Merge 87bfe0410e
into 836e49b535
This commit is contained in:
commit
e7439b415d
|
@ -135,7 +135,10 @@ class SimpleRouter(BaseRouter):
|
|||
]
|
||||
|
||||
def __init__(self, trailing_slash=True):
|
||||
self.trailing_slash = trailing_slash and '/' or ''
|
||||
if isinstance(trailing_slash, str):
|
||||
self.trailing_slash = trailing_slash
|
||||
else:
|
||||
self.trailing_slash = trailing_slash and '/' or ''
|
||||
super(SimpleRouter, self).__init__()
|
||||
|
||||
def get_default_base_name(self, viewset):
|
||||
|
|
Loading…
Reference in New Issue
Block a user