0
0
mirror of https://github.com/django/django.git synced 2024-12-01 15:42:04 +01:00

Merge pull request #9 from t0m/master

Fixed typo: instanciating -> instantiating in django/views/generic/edit.py
This commit is contained in:
Adrian Holovaty 2012-04-28 11:18:35 -07:00
commit ebcba0129f

View File

@ -35,7 +35,7 @@ class FormMixin(ContextMixin):
def get_form_kwargs(self):
"""
Returns the keyword arguments for instanciating the form.
Returns the keyword arguments for instantiating the form.
"""
kwargs = {'initial': self.get_initial()}
if self.request.method in ('POST', 'PUT'):
@ -87,7 +87,7 @@ class ModelFormMixin(FormMixin, SingleObjectMixin):
def get_form_kwargs(self):
"""
Returns the keyword arguments for instanciating the form.
Returns the keyword arguments for instantiating the form.
"""
kwargs = super(ModelFormMixin, self).get_form_kwargs()
kwargs.update({'instance': self.object})