summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAdrian Holovaty <adrian@holovaty.com>2012-04-28 11:18:35 -0700
committerAdrian Holovaty <adrian@holovaty.com>2012-04-28 11:18:35 -0700
commitebcba0129f1e901bfb30d4ad7abadddd2ce13cdf (patch)
tree9bee5d5cbab05288e7981af3195d0e461ae41886
parent2cadd8623915227d594be2b5a2749435215dd240 (diff)
parenta0d34348dd680a180496d1cc5d3bdbaec249f3f0 (diff)
Merge pull request #9 from t0m/master
Fixed typo: instanciating -> instantiating in django/views/generic/edit.py
-rw-r--r--django/views/generic/edit.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/django/views/generic/edit.py b/django/views/generic/edit.py
index 1f488cb880..b3ff328344 100644
--- a/django/views/generic/edit.py
+++ b/django/views/generic/edit.py
@@ -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})