mirror of
https://github.com/encode/django-rest-framework.git
synced 2025-08-07 22:04:48 +03:00
Merge c6b71055fd
into 9b56dda918
This commit is contained in:
commit
41f4ab3cc4
|
@ -30,7 +30,7 @@ class BaseVersioning(object):
|
|||
def is_allowed_version(self, version):
|
||||
if not self.allowed_versions:
|
||||
return True
|
||||
return (version == self.default_version) or (version in self.allowed_versions)
|
||||
return version in self.allowed_versions
|
||||
|
||||
|
||||
class AcceptHeaderVersioning(BaseVersioning):
|
||||
|
|
Loading…
Reference in New Issue
Block a user