#8562: OneToOnes + primary_key = True ... fails in Admin
--------------------------------------+-------------------------------------
Reporter: magneto | Owner: nobody
Status: new | Milestone: 1.0
Component: Admin interface | Version: SVN
Resolution: | Keywords: admin onetoone
Stage: Accepted | Has_patch: 1
Needs_docs: 0 | Needs_tests: 1
Needs_better_patch: 1 |
--------------------------------------+-------------------------------------
Changes (by kmtracey):
* needs_better_patch: 0 => 1
Comment:
One test fails when running with 8562_primary_uniques.diff:
{{{
======================================================================
FAIL: Doctest: modeltests.model_forms.models.__test__.API_TESTS
----------------------------------------------------------------------
Traceback (most recent call last):
File "/home/kmt/tmp/django/trunk/django/test/_doctest.py", line 2180, in
runTest
raise self.failureException(self.format_failure(new.getvalue()))
AssertionError: Failed doctest test for
modeltests.model_forms.models.__test__.API_TESTS
File
"/home/kmt/tmp/django/trunk/tests/modeltests/model_forms/models.py", line
unknown line number, in API_TESTS
----------------------------------------------------------------------
File "/home/kmt/tmp/django/trunk/tests/modeltests/model_forms/models.py",
line ?, in modeltests.model_forms.models.__test__.API_TESTS
Failed example:
sorted(model_to_dict(bw).keys())
Expected:
['id', 'name', 'writer_ptr_id']
Got:
['id', 'name', 'writer_ptr', 'writer_ptr_id']
----------------------------------------------------------------------
Ran 515 tests in 1376.062s
FAILED (failures=1)
}}}
Someone needs to figure out if the test just needs to be updated to expect
the new output or if it's a sign of a real problem.
--
Ticket URL: <http://code.djangoproject.com/ticket/8562#comment:9>
Django Code <http://code.djangoproject.com/>
The web framework for perfectionists with deadlines
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"Django updates" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at
http://groups.google.com/group/django-updates?hl=en
-~----------~----~----~----~------~----~------~--~---