diff --git a/django/views/generic/edit.py b/django/views/generic/edit.py index ff87f7bd14..3cade522d4 100644 --- a/django/views/generic/edit.py +++ b/django/views/generic/edit.py @@ -171,11 +171,6 @@ class BaseCreateView(ModelFormMixin, ProcessFormView): self.object = None return super(BaseCreateView, self).post(request, *args, **kwargs) - # PUT is a valid HTTP verb for creating (with a known URL) or editing an - # object, note that browsers only support POST for now. - def put(self, *args, **kwargs): - return self.post(*args, **kwargs) - class CreateView(SingleObjectTemplateResponseMixin, BaseCreateView): """ @@ -199,11 +194,6 @@ class BaseUpdateView(ModelFormMixin, ProcessFormView): self.object = self.get_object() return super(BaseUpdateView, self).post(request, *args, **kwargs) - # PUT is a valid HTTP verb for creating (with a known URL) or editing an - # object, note that browsers only support POST for now. - def put(self, *args, **kwargs): - return self.post(*args, **kwargs) - class UpdateView(SingleObjectTemplateResponseMixin, BaseUpdateView): """