Author: zain
Date: 2009-12-21 19:28:58 -0600 (Mon, 21 Dec 2009)
New Revision: 11935
Modified:
django/branches/soc2009/admin-ui/django/forms/models.py
Log:
[soc2009/admin-ui] Fixing ticket #11682. Thanks to fredbartle for the patch.
Modified: django/branches/soc2009/admin-ui/django/forms/models.py
===================================================================
--- django/branches/soc2009/admin-ui/django/forms/models.py 2009-12-21
19:31:19 UTC (rev 11934)
+++ django/branches/soc2009/admin-ui/django/forms/models.py 2009-12-22
01:28:58 UTC (rev 11935)
@@ -676,7 +676,7 @@
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
--
You received this message because you are subscribed to the Google Groups
"Django updates" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to
[email protected].
For more options, visit this group at
http://groups.google.com/group/django-updates?hl=en.