--- Django-1.3-rc-1/django/contrib/admin/media/js/inlines.js.orig	2011-03-15 17:18:34.000000000 +0100
+++ Django-1.3-rc-1/django/contrib/admin/media/js/inlines.js	2011-03-15 17:39:29.000000000 +0100
@@ -59,7 +59,6 @@
 				row.removeClass(options.emptyCssClass)
 				    .addClass(options.formCssClass)
 				    .attr("id", options.prefix + "-" + nextIndex);
-				nextIndex += 1;
 				row.find("*")
 				    .filter(function() {
 				        var el = $(this);
@@ -104,6 +103,7 @@
 				row.insertBefore($(template));
 				// Update number of total forms
 				$(totalForms).val(parseInt(totalForms.val()) + 1);
+				nextIndex += 1;
 				// Hide add button in case we've hit the max, except we want to add infinitely
 				if ((maxForms.val() != '') && (maxForms.val()-totalForms.val()) <= 0) {
 					addButton.parent().hide();
