what you should do in your post check is 

           bill_item = BillItem.objects.get(code = itemcode)

form = BillItem(request.POST, instance = bill_item)


This populates the form with the existing model instance and merges with 
the post data.  you then can run form.save() to persist the update to the 
db. 

-- 
You received this message because you are subscribed to the Google Groups 
"Django users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
Visit this group at https://groups.google.com/group/django-users.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-users/16d395cf-5c2e-4970-8899-b32b3884c2c2%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to