2011-08-27 76 views

回答

-1

如果我理解正確的話,你要訪問保存的模型實例,可以簡單地這樣做:

if formset.is_valid(): 
    my_object = formset.save() # my_object now refers to the model instance.