X-Git-Url: https://git.mdrn.pl/wolnelektury.git/blobdiff_plain/c65314d0db1d45ec00001b207e633072cb17c156..5bd864493e531e5600c5ca989825d89cc3ee1487:/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']