mirror of
https://github.com/django/django.git
synced 2025-10-23 21:59:11 +00:00
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
This commit is contained in:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user