Django ModelForm not saving data to database

前端 未结 6 2073
温柔的废话
温柔的废话 2021-02-10 05:53

A Django beginner here having a lot of trouble getting forms working. Yes I\'ve worked through the tutorial and browsed the web a lot - what I have is mix of what I\'m finding h

6条回答
  •  不思量自难忘°
    2021-02-10 06:21

    UserDetailsForm(request.POST, instance = db_obj_form)
    

    db_obj should be an object of table UserProfile that you want to save.

提交回复
热议问题