1
0
mirror of https://github.com/django/django.git synced 2025-07-04 01:39:20 +00:00

[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
This commit is contained in:
Zain Memon 2009-12-22 01:28:58 +00:00
parent c1aeb0da21
commit 7b2cdd0209

View File

@ -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