diff options
| author | Ian Kelly <ian.g.kelly@gmail.com> | 2011-03-09 00:39:35 +0000 |
|---|---|---|
| committer | Ian Kelly <ian.g.kelly@gmail.com> | 2011-03-09 00:39:35 +0000 |
| commit | 9e637d3061bfd620be3e2bb6a79e2d8d08154f91 (patch) | |
| tree | 90f18acc9e5591b79a0e9ed706ab9af7aaf1b0f4 /tests/regressiontests/inline_formsets | |
| parent | d9e61a435a90a163c1d887224bee68a386f7a171 (diff) | |
Fixed a number of tests that were failing in Oracle due to false assumptions about the primary keys of objects.
git-svn-id: http://code.djangoproject.com/svn/django/trunk@15779 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 5bd9d18ddd..b47967971a 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) |
