Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse code

[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 Memon authored December 22, 2009

Showing 1 changed file with 1 addition and 1 deletion. Show diff stats Hide diff stats

  1. 2  django/forms/models.py
2  django/forms/models.py
@@ -676,7 +676,7 @@ def pk_is_not_editable(pk):
676 676
                 pk_value = form.instance.pk
677 677
             else:
678 678
                 try:
679  
-                    if index:
  679
+                    if index is not None:
680 680
                         pk_value = self.get_queryset()[index].pk
681 681
                     else:
682 682
                         pk_value = None

0 notes on commit 7b2cdd0

Please sign in to comment.
Something went wrong with that request. Please try again.