X-Git-Url: https://git.mdrn.pl/wolnelektury.git/blobdiff_plain/c65314d0db1d45ec00001b207e633072cb17c156..7784eab91b17a8c74cd79eb15303d09842b2d91c:/src/catalogue/api/views.py?ds=sidebyside diff --git a/src/catalogue/api/views.py b/src/catalogue/api/views.py index b45ad4656..5512501c6 100644 --- a/src/catalogue/api/views.py +++ b/src/catalogue/api/views.py @@ -320,7 +320,7 @@ class TagView(RetrieveAPIView): slug=self.kwargs['slug'] ) except Http404: - if self.method == 'PUT': + if self.request.method == 'PUT': return Tag( category=self.kwargs['category'], slug=self.kwargs['slug']