Skip to content

Commit

Permalink
Changed one of the model_formsets tests to be immune to the differenc…
Browse files Browse the repository at this point in the history
…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
malcolmt committed Jul 27, 2008
1 parent 103d484 commit aee55ce
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions tests/modeltests/model_formsets/models.py
Expand Up @@ -20,7 +20,7 @@ class AuthorMeeting(models.Model):
name = models.CharField(max_length=100)
authors = models.ManyToManyField(Author)
created = models.DateField(editable=False)

def __unicode__(self):
return self.name

Expand Down Expand Up @@ -289,10 +289,10 @@ def __unicode__(self):
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.
Expand Down

0 comments on commit aee55ce

Please sign in to comment.