#15696: Add pre_insert signal to loaddata command
---------------------------+---------------------------
 Reporter:  jonash         |         Owner:  nobody
   Status:  new            |     Milestone:
Component:  Serialization  |       Version:  1.2
 Keywords:  nonrel         |  Triage Stage:  Unreviewed
Has patch:  0              |
---------------------------+---------------------------
 Here's a patch that adds a `pre_insert` signal to the `loaddata` command,
 allowing to do extra modifications on deserialized objects before saving
 them to the database.

 Here's my use case: SQL databases use integer primary keys, MongoDB uses
 ObjectIds, and I want to re-use SQL-style fixtures (as found in the Django
 test suite) to test Django MongoDB Engine (the Django MongoDB backend).  I
 think this is a painless way to solve this problem: Very little code
 changes and doesn't require any ugly hacks.

 Would be great if this could be applied!

-- 
Ticket URL: <http://code.djangoproject.com/ticket/15696>
Django <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.

Reply via email to