diff options
| author | Zain Memon <zain@inzain.net> | 2009-12-22 01:28:58 +0000 |
|---|---|---|
| committer | Zain Memon <zain@inzain.net> | 2009-12-22 01:28:58 +0000 |
| commit | 7b2cdd0209df301285570b7678830c060d29c4d8 (patch) | |
| tree | 53aac504f70ec9a9447101f25b54d96240918f14 | |
| parent | c1aeb0da21cfb65f9597ba25a2c53aeae7b71342 (diff) | |
[soc2009/admin-ui] Fixing ticket #11682. Thanks to fredbartle for the patch.
git-svn-id: http://code.djangoproject.com/svn/django/branches/soc2009/admin-ui@11935 bcc190cf-cafb-0310-a4f2-bffc1f526a37
| -rw-r--r-- | django/forms/models.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/django/forms/models.py b/django/forms/models.py index af3d7023c8..78788fc2db 100644 --- a/django/forms/models.py +++ b/django/forms/models.py @@ -676,7 +676,7 @@ class BaseModelFormSet(BaseFormSet): pk_value = form.instance.pk else: try: - if index: + if index is not None: pk_value = self.get_queryset()[index].pk else: pk_value = None |
