mirror of
https://github.com/encode/django-rest-framework.git
synced 2025-05-17 06:13:43 +03:00
Typo in url
This commit is contained in:
parent
d3557bdcd0
commit
d2b5ea107e
|
@ -69,7 +69,7 @@ try:
|
||||||
from django.views.generic import View
|
from django.views.generic import View
|
||||||
if not hasattr(View, 'head'):
|
if not hasattr(View, 'head'):
|
||||||
# First implementation of Django class-based views did not include head method
|
# First implementation of Django class-based views did not include head method
|
||||||
# in base View class - https://code.djangoproject.com/ticket/15688
|
# in base View class - https://code.djangoproject.com/ticket/15668
|
||||||
class ViewPlusHead(View):
|
class ViewPlusHead(View):
|
||||||
def head(self, request, *args, **kwargs):
|
def head(self, request, *args, **kwargs):
|
||||||
return self.get(request, *args, **kwargs)
|
return self.get(request, *args, **kwargs)
|
||||||
|
|
Loading…
Reference in New Issue
Block a user