1. Luke Plant
  2. django

Commits

za...@bcc190cf-cafb-0310-a4f2-bffc1f526a37  committed 861830d

[soc2009/admin-ui] Fixing ticket #11682. Thanks to fredbartle for the patch.

  • Participants
  • Parent commits 455459a
  • Branches soc2009/admin-ui

Comments (0)

Files changed (1)

File django/forms/models.py

View file
  • Ignore whitespace
                 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