Django

Code

Ticket #4288 (closed: fixed)

Opened 2 years ago

Last modified 2 years ago

fixture loading silently failing on postgresql

Reported by: sandro@e-den.it Assigned to: adrian
Milestone: Component: django-admin.py
Version: SVN Keywords: fixtures
Cc: sandro@e-den.it Triage Stage: Unreviewed
Has patch: 0 Needs documentation: 0
Needs tests: 0 Patch needs improvement: 0

Description

Attached simple case shows 2 models, connected by a simple foreign_key and a fixture. Loading the fixture against PostgreSQL, will silently fail. Log from PostgreSql? and console are also attached.

The key is the fact that the foreign key does not pout to an id but to another field. It the model is changed to point to the id the fixture is loaded.

[Moreover if a spelling error is present in the model, no message is issued and in the console the log says no fixture is found]

Attachments

Change History

05/13/07 20:30:33 changed by anonymous

  • cc set to sandro@e-den.it.
  • needs_better_patch changed.
  • needs_tests changed.
  • needs_docs changed.

the system raises InternalError? trying to attach the file, so I put it here: http://www.e-den.it/misc/fixture_failing.tgz

05/14/07 09:14:49 changed by russellm

  • status changed from new to closed.
  • resolution set to fixed.

(In [5232]) Fixed #4288 -- Modified serializers to pay attention to the to_field attribute on ForeignKeys?. Thanks to Sandro Dentella for the report and the helpful test case.


Add/Change #4288 (fixture loading silently failing on postgresql)




Change Properties
Action