Changeset 8091
- Timestamp:
- 07/26/08 09:49:39 (6 months ago)
- Files:
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
django/trunk/tests/modeltests/model_formsets/models.py
r8060 r8091 3 3 class Author(models.Model): 4 4 name = models.CharField(max_length=100) 5 6 class Meta: 7 ordering = ('name',) 5 8 6 9 def __unicode__(self): … … 197 200 >>> formset.save_m2m() 198 201 >>> instances[0].authors.all() 199 [<Author: Charles Baudelaire>, <Author: Walt Whitman>, <Author: Paul Verlaine>, <Author: John Steinbeck>]202 [<Author: Charles Baudelaire>, <Author: John Steinbeck>, <Author: Paul Verlaine>, <Author: Walt Whitman>] 200 203 201 204 # delete the author we created to allow later tests to continue working.
