Remove "api." prefix for default route names, in API master views

This commit is contained in:
Lance Edgar 2020-03-03 17:10:41 -06:00
parent 0483f47b26
commit 11cc9a752a

View file

@ -73,7 +73,7 @@ class APIMasterView(APIView):
if prefix: if prefix:
return prefix return prefix
model_name = cls.get_normalized_model_name() model_name = cls.get_normalized_model_name()
return 'api.{}s'.format(model_name) return '{}s'.format(model_name)
@classmethod @classmethod
def get_permission_prefix(cls): def get_permission_prefix(cls):