Fixed selector code
parent
2eaf3b249c
commit
9b911bc2cd
|
@ -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)
|
||||||
|
|
Loading…
Reference in New Issue