Commit aee55ce5 authored by Malcolm Tredinnick's avatar Malcolm Tredinnick
Browse files

Changed one of the model_formsets tests to be immune to the differences in the

natural collation ordering used by different databases (normally, this test
would fail on PostgreSQL, but not because the code was incorrect). This is
purely a test tweak.


git-svn-id: http://code.djangoproject.com/svn/django/trunk@8097 bcc190cf-cafb-0310-a4f2-bffc1f526a37
parent 103d4848
Loading
Loading
Loading
Loading
+3 −3
Original line number Diff line number Diff line
@@ -289,10 +289,10 @@ True

As you can see, 'Le Spleen de Paris' is now a book belonging to Charles Baudelaire.

>>> for book in author.book_set.order_by('title'):
>>> for book in author.book_set.order_by('id'):
...     print book.title
Le Spleen de Paris
Les Fleurs du Mal
Le Spleen de Paris

The save_as_new parameter lets you re-associate the data to a new instance.
This is used in the admin for save_as functionality.