Hi,

When in a model you run something like this:

>> obj = Product(name='Apple')
>> obj.id
4

I realize the first statement will turn into an insert table. But, how
does django know of its newly assigned primary key(ID).

I have a legacy database whose ID is assigned with an after trigger,
and am trying to understand how I can integrate them.

Thanks,
Sia


--~--~---------~--~----~------------~-------~--~----~
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?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to