Skip to content

Commit

Permalink
Fixed some silly assumptions about pk's that broke the test suite und…
Browse files Browse the repository at this point in the history
…er postgresql.

git-svn-id: http://code.djangoproject.com/svn/django/trunk@10348 bcc190cf-cafb-0310-a4f2-bffc1f526a37
  • Loading branch information
jkocherhans committed Apr 1, 2009
1 parent b2645a1 commit dc832d7
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion tests/modeltests/model_formsets/tests.py
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ def test_deletion(self):
data = {
'form-TOTAL_FORMS': u'1',
'form-INITIAL_FORMS': u'1',
'form-0-id': u'1',
'form-0-id': str(poet.pk),
'form-0-name': u'test',
'form-0-DELETE': u'on',
}
Expand Down
6 changes: 3 additions & 3 deletions tests/regressiontests/inline_formsets/tests.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,12 +6,12 @@ class DeletionTests(TestCase):
def test_deletion(self):
PoemFormSet = inlineformset_factory(Poet, Poem, can_delete=True)
poet = Poet.objects.create(name='test')
poet.poem_set.create(name='test poem')
poem = poet.poem_set.create(name='test poem')
data = {
'poem_set-TOTAL_FORMS': u'1',
'poem_set-INITIAL_FORMS': u'1',
'poem_set-0-id': u'1',
'poem_set-0-poem': u'1',
'poem_set-0-id': str(poem.pk),
'poem_set-0-poet': str(poet.pk),
'poem_set-0-name': u'test',
'poem_set-0-DELETE': u'on',
}
Expand Down

0 comments on commit dc832d7

Please sign in to comment.