Commit cb9ad6a0 authored by Guilhem Saurel's avatar Guilhem Saurel
Browse files

docker view: immutable querydict, bis

parent edc305e3
Pipeline #568 passed with stages
in 39 seconds
......@@ -96,9 +96,9 @@ def json_doc(request):
def docker(request):
cmd = 'build'
if 'cmd' in request.GET and request.GET['cmd'] in ['push', 'pull', 'build']:
cmd = request.GET.pop('cmd')
filters = request.GET.dict()
if 'cmd' in filters and filters['cmd'] in ['push', 'pull', 'build']:
cmd = filters.pop('cmd')
if 'target' in filters:
filters['target'] = int(utils.TARGETS.__getitem__(filters['target']))
images = models.Image.objects.filter(**filters)
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment