Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse code

Fixed #11632: Fixed a test broken by r11826 that relied on the exact …

…(invalid HTML) id of an initial hidden input field.

git-svn-id: http://code.djangoproject.com/svn/django/trunk@11835 bcc190cf-cafb-0310-a4f2-bffc1f526a37
  • Loading branch information...
commit 627f4623b747d3d0b57c3c09677f3d9a0cc39b05 1 parent 0986a4d
Karen Tracey authored December 12, 2009
2  tests/modeltests/model_formsets/models.py
@@ -885,7 +885,7 @@ def __unicode__(self):
885 885
 >>> form = formset.forms[0] # this formset only has one form
886 886
 >>> now = form.fields['date_joined'].initial
887 887
 >>> print form.as_p()
888  
-<p><label for="id_membership_set-0-date_joined">Date joined:</label> <input type="text" name="membership_set-0-date_joined" value="..." id="id_membership_set-0-date_joined" /><input type="hidden" name="initial-membership_set-0-date_joined" value="..." id="id_membership_set-0-date_joined" /></p>
  888
+<p><label for="id_membership_set-0-date_joined">Date joined:</label> <input type="text" name="membership_set-0-date_joined" value="..." id="id_membership_set-0-date_joined" /><input type="hidden" name="initial-membership_set-0-date_joined" value="..." id="initial-membership_set-0-id_membership_set-0-date_joined" /></p>
889 889
 <p><label for="id_membership_set-0-karma">Karma:</label> <input type="text" name="membership_set-0-karma" id="id_membership_set-0-karma" /><input type="hidden" name="membership_set-0-person" value="1" id="id_membership_set-0-person" /><input type="hidden" name="membership_set-0-id" id="id_membership_set-0-id" /></p>
890 890
 
891 891
 # test for validation with callable defaults. Validations rely on hidden fields

0 notes on commit 627f462

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