Django ModelForm not saving data to database

前端 未结 6 2088
温柔的废话
温柔的废话 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:33

    Remember to register your model form to admin.py file. This is a common mistake

    Register your models here.

    from . models import advancedUserForm
    admin.site.register(advancedUserForm)
    

提交回复
热议问题