Remove unused import, spacing
@@ -15,7 +15,6 @@ from django.core.exceptions import ValidationError, PermissionDenied, ObjectDoes
from django.http import HttpResponseRedirect, HttpResponse, JsonResponse, \
HttpResponseBadRequest, HttpResponseForbidden
from django.shortcuts import get_object_or_404, render, redirect
-from django.template import RequestContext
from django.core import signing
from django.db import Error, IntegrityError
from django import forms
@@ -311,6 +310,7 @@ def update_key_value_metadata(request, shortkey, *args, **kwargs):
return HttpResponseRedirect(request.META['HTTP_REFERER'])
+
@api_view(['POST', 'GET'])
def update_key_value_metadata_public(request, pk):
res, _, _ = authorize(request, pk, needed_permission=ACTION_TO_AUTHORIZE.EDIT_RESOURCE)
