Ticket #11682: admin-ui-11682.diff
File admin-ui-11682.diff, 597 bytes (added by , 15 years ago) |
---|
-
django/src/django-admin-ui/django/forms/models.py
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