fixes
[wolnelektury.git] / src / catalogue / api / views.py
index b45ad46..5512501 100644 (file)
@@ -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']