Fixed selector code

remotes/origin/endpoint-for-estimation-system-new
Jesús Espino 2017-06-07 12:11:34 +02:00 committed by David Barragán Merino
parent 2eaf3b249c
commit 9b911bc2cd
1 changed files with 2 additions and 1 deletions

View File

@ -1040,5 +1040,6 @@ class GameViewSet(ModelCrudViewSet):
lookup_value_regex = "[\w-]+\/[0-9a-f-]+$" lookup_value_regex = "[\w-]+\/[0-9a-f-]+$"
def dispatch(self, request, *args, **kwargs): def dispatch(self, request, *args, **kwargs):
(kwargs['project__slug'], kwargs['uuid']) = kwargs.pop('selector').split("/") if "selector" in kwargs:
(kwargs['project__slug'], kwargs['uuid']) = kwargs.pop('selector').split("/")
return super().dispatch(request, *args, **kwargs) return super().dispatch(request, *args, **kwargs)