X-Git-Url: https://git.mdrn.pl/wolnelektury.git/blobdiff_plain/c65314d0db1d45ec00001b207e633072cb17c156..739f55be14e161e485b2107b628689c4f01ded6b:/src/catalogue/api/views.py 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']