django model forms how to use PK within the forms (forms.py)?

后端 未结 0 2000
醉酒成梦
醉酒成梦 2020-11-28 02:16

I want to do the following validation in a django model form:

class BookUpdateModelForm(forms.modelForm):
    #[... a lot of stuff ...]
    def clean_title(se         


        
相关标签:
回答
  • 消灭零回复
提交回复
热议问题