Ticket #7028: tests-fix-for-improved-raw-id-admin-patch.patch
File tests-fix-for-improved-raw-id-admin-patch.patch, 1.2 KB (added by , 17 years ago) |
---|
-
regressiontests/admin_widgets/models.py
56 56 >>> rel = Album._meta.get_field('band').rel 57 57 >>> w = ForeignKeyRawIdWidget(rel) 58 58 >>> print conditional_escape(w.render('test', band.pk, attrs={})) 59 <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>59 <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 id="view_lookup_id_test">Linkin Park</strong> 60 60 61 61 >>> m1 = Member.objects.create(pk=1, name='Chester') 62 62 >>> m2 = Member.objects.create(pk=2, name='Mike')