Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

[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
  • Loading branch information...
commit 7b2cdd0209df301285570b7678830c060d29c4d8 1 parent c1aeb0d
@zain zain authored
Showing with 1 addition and 1 deletion.
  1. +1 −1  django/forms/models.py
View
2  django/forms/models.py
@@ -676,7 +676,7 @@ def pk_is_not_editable(pk):
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
Please sign in to comment.
Something went wrong with that request. Please try again.