Ticket #12896: form_is_valid_side_effects_test.diff
File form_is_valid_side_effects_test.diff, 665 bytes (added by , 15 years ago) |
---|
-
tests/modeltests/model_forms/models.py
580 580 <option value="3">Third test</option> 581 581 </select> Hold down "Control", or "Command" on a Mac, to select more than one.</li> 582 582 >>> f = TestArticleForm({'headline': u'Test headline', 'slug': 'test-headline', 'pub_date': u'1984-02-06', 'writer': u'1', 'article': 'Hello.'}, instance=art) 583 >>> art.slug 584 'test-article' 583 585 >>> f.errors 584 586 {} 587 >>> art.slug 588 'test-article' 585 589 >>> f.is_valid() 586 590 True 587 591 >>> test_art = f.save()