Hiya;

I'm writing something akin to a very specific part of the Admin contrib
app, yet sufficiently different as to make the admin unsuitable for
what I'm doing.

What I have are two models, model1 and model2. Model2 has a fkey
relationship to model one.

I do not want to save model1 to the DB unless both are saved.

Right now, trying to wrap the entire addition in a single transaction
(for correct rollback), using model1's id in model2's fkey field is
throwing an error about it not being in the validation list.

My question is:
Where is the validation list, so I might add my new object to it,

- OR -

can I do something akin to model2['fkey'] = new_instance_of_model_1 and
have it do what I expect?


--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"Django users" group.
To post to this group, send email to django-users@googlegroups.com
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/django-users
-~----------~----~----~----~------~----~------~--~---

Reply via email to