If I have a model form and save it like:
f = FormModel(request.POST)
if f.is_valid():
f.save()
How can I get back that object that has just been saved?
See Question&Answers more detail:osIf I have a model form and save it like:
f = FormModel(request.POST)
if f.is_valid():
f.save()
How can I get back that object that has just been saved?
See Question&Answers more detail:os