Re: How does django know the difference between INSERT and UPDATE

2008-09-08 Thread Gerard Petersen
Jonknee, That cleared up major! Thanx for your teachings. Regards, Gerard. jonknee wrote: >> I read that Django knows the difference between a new and a updated record, >> but it replicates the customer if I don't set the customer_id before a >> customer.save. Would somebody please shoot at

Re: How does django know the difference between INSERT and UPDATE

2008-09-06 Thread jonknee
> I read that Django knows the difference between a new and a updated record, > but it replicates the customer if I don't set the customer_id before a > customer.save. Would somebody please shoot at my code and tell me where the > room for improvement is hiding? You're almost there, just make

How does django know the difference between INSERT and UPDATE

2008-09-06 Thread Gerard Petersen
Hi all, I read that Django knows the difference between a new and a updated record, but it replicates the customer if I don't set the customer_id before a customer.save. Would somebody please shoot at my code and tell me where the room for improvement is hiding? def customer_edit(request, cus