diff --git a/django/views/generic/edit.py b/django/views/generic/edit.py
index ff87f7b..3cade52 100644
a
|
b
|
class BaseCreateView(ModelFormMixin, ProcessFormView):
|
171 | 171 | self.object = None |
172 | 172 | return super(BaseCreateView, self).post(request, *args, **kwargs) |
173 | 173 | |
174 | | # PUT is a valid HTTP verb for creating (with a known URL) or editing an |
175 | | # object, note that browsers only support POST for now. |
176 | | def put(self, *args, **kwargs): |
177 | | return self.post(*args, **kwargs) |
178 | | |
179 | 174 | |
180 | 175 | class CreateView(SingleObjectTemplateResponseMixin, BaseCreateView): |
181 | 176 | """ |
… |
… |
class BaseUpdateView(ModelFormMixin, ProcessFormView):
|
199 | 194 | self.object = self.get_object() |
200 | 195 | return super(BaseUpdateView, self).post(request, *args, **kwargs) |
201 | 196 | |
202 | | # PUT is a valid HTTP verb for creating (with a known URL) or editing an |
203 | | # object, note that browsers only support POST for now. |
204 | | def put(self, *args, **kwargs): |
205 | | return self.post(*args, **kwargs) |
206 | | |
207 | 197 | |
208 | 198 | class UpdateView(SingleObjectTemplateResponseMixin, BaseUpdateView): |
209 | 199 | """ |