Changeset 2445
- Timestamp:
- 02/28/06 12:10:21 (3 years ago)
- Files:
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
django/branches/magic-removal/tests/modeltests/manipulators/models.py
r2195 r2445 87 87 >>> a2.release_date 88 88 datetime.date(2005, 2, 13) 89 90 # Test follow (inline editing) functionality.91 >>> man = Musician.ChangeManipulator(m1, follow={"album": True})92 >>> data = man.flatten_data()93 >>> sorted_list = data.items()94 >>> sorted_list.sort(lambda x, y: cmp(x[0], y[0]))95 >>> sorted_list96 [('album.0.id', 1), ('album.0.name', 'Ella and Basie'), ('album.0.release_date', ''), ('album.1.id', 2), ('album.1.name', 'Ultimate Ella'), ('album.1.release_date', '2005-02-13'), ('first_name', 'Ella'), ('id', 1L), ('last_name', 'Fitzgerald')]97 89 """
