How can i retrieve the row just entered in database in django -


i used function save data in mysql

form.save() 

now want send row can dynamically update table , append row @ bottom. how can retrieve that

if save data mysql using form.save() use modelform. modelform save method returns instance of model (row):

row = form.save() 

more on this: https://docs.djangoproject.com/en/dev/topics/forms/modelforms/#the-save-method


Comments

Popular posts from this blog

c# - SharpSVN - How to get the previous revision? -

c++ - Is it possible to compile a VST on linux? -

url - Querystring manipulation of email Address in PHP -