Fixed selector code

remotes/origin/endpoint-for-estimation-system
Jesús Espino 2017-06-07 12:11:34 +02:00
parent 7ff23b3ee8
commit bc48e5f8df
1 changed files with 2 additions and 1 deletions

View File

@ -829,5 +829,6 @@ class GameViewSet(ModelCrudViewSet):
lookup_value_regex = "[\w-]+\/[0-9a-f-]+$"
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)