mirror of
https://github.com/django/django.git
synced 2025-07-04 17:59:13 +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:
parent
c1aeb0da21
commit
7b2cdd0209
@ -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
|
||||
|
Loading…
x
Reference in New Issue
Block a user