Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse code

Changed one of the model_formsets tests to be immune to the differenc…

…es 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
  • Loading branch information...
commit aee55ce5249fdc822d6bd4ec5238a3154a217dcb 1 parent 103d484
Malcolm Tredinnick authored July 27, 2008

Showing 1 changed file with 3 additions and 3 deletions. Show diff stats Hide diff stats

  1. 6  tests/modeltests/model_formsets/models.py
6  tests/modeltests/model_formsets/models.py
@@ -20,7 +20,7 @@ class AuthorMeeting(models.Model):
20 20
     name = models.CharField(max_length=100)
21 21
     authors = models.ManyToManyField(Author)
22 22
     created = models.DateField(editable=False)
23  
-    
  23
+
24 24
     def __unicode__(self):
25 25
         return self.name
26 26
 
@@ -289,10 +289,10 @@ def __unicode__(self):
289 289
 
290 290
 As you can see, 'Le Spleen de Paris' is now a book belonging to Charles Baudelaire.
291 291
 
292  
->>> for book in author.book_set.order_by('title'):
  292
+>>> for book in author.book_set.order_by('id'):
293 293
 ...     print book.title
294  
-Le Spleen de Paris
295 294
 Les Fleurs du Mal
  295
+Le Spleen de Paris
296 296
 
297 297
 The save_as_new parameter lets you re-associate the data to a new instance.
298 298
 This is used in the admin for save_as functionality.

0 notes on commit aee55ce

Please sign in to comment.
Something went wrong with that request. Please try again.