Ticket #7923: patchtest.diff
File patchtest.diff, 1.3 KB (added by , 16 years ago) |
---|
-
tests/regressiontests/admin_widgets/models.py
61 61 >>> rel = Album._meta.get_field('band').rel 62 62 >>> w = ForeignKeyRawIdWidget(rel) 63 63 >>> print conditional_escape(w.render('test', band.pk, attrs={})) 64 <input type="text" name="test" value="1" class="vForeignKeyRawIdAdminField" /><a href="../../../admin_widgets/band/" class="related-lookup" id="lookup_id_test" onclick="return showRelatedObjectLookupPopup(this);"> <img src="%(ADMIN_MEDIA_PREFIX)simg/admin/selector-search.gif" width="16" height="16" alt="Lookup" /></a> <strong> Linkin Park</strong>64 <input type="text" name="test" value="1" class="vForeignKeyRawIdAdminField" /><a href="../../../admin_widgets/band/" class="related-lookup" id="lookup_id_test" onclick="return showRelatedObjectLookupPopup(this);"> <img src="%(ADMIN_MEDIA_PREFIX)simg/admin/selector-search.gif" width="16" height="16" alt="Lookup" /></a> <strong><a href="../../../admin_widgets/band/1/">Linkin Park</a></strong> 65 65 66 66 >>> m1 = Member.objects.create(pk=1, name='Chester') 67 67 >>> m2 = Member.objects.create(pk=2, name='Mike')