diff options
| author | Ian Kelly <ian.g.kelly@gmail.com> | 2011-03-09 00:43:36 +0000 |
|---|---|---|
| committer | Ian Kelly <ian.g.kelly@gmail.com> | 2011-03-09 00:43:36 +0000 |
| commit | 1c08ca568fa83f89119d472e0b77bb088ea2f259 (patch) | |
| tree | 6725b16fc917f0d9589ed33c10d43bdb7144638a /tests/regressiontests/inline_formsets | |
| parent | 05b197dbb17fad30dd8a0cdc68bfb453697473ed (diff) | |
[1.2.X] Fixed a number of tests that were failing in Oracle due to false assumptions about the primary keys of objects.
Backport of r15779 from trunk.
git-svn-id: http://code.djangoproject.com/svn/django/branches/releases/1.2.X@15780 bcc190cf-cafb-0310-a4f2-bffc1f526a37
Diffstat (limited to 'tests/regressiontests/inline_formsets')
| -rw-r--r-- | tests/regressiontests/inline_formsets/tests.py | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/tests/regressiontests/inline_formsets/tests.py b/tests/regressiontests/inline_formsets/tests.py index dd698ab1c3..c0bfdb8487 100644 --- a/tests/regressiontests/inline_formsets/tests.py +++ b/tests/regressiontests/inline_formsets/tests.py @@ -59,13 +59,13 @@ class DeletionTests(TestCase): """ 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-MAX_NUM_FORMS': u'0', - 'poem_set-0-id': u'1', - 'poem_set-0-poem': u'1', + 'poem_set-0-id': unicode(poem.id), + 'poem_set-0-poem': unicode(poem.id), 'poem_set-0-name': u'x' * 1000, } formset = PoemFormSet(data, instance=poet) |
