模型.py
title_choices=(('Software Engineer Trainee',"Software Engineer Trainee"),
('Senior Software Engineer ',"Senior Software Engineer"))
op_title = models.CharField(max_length=768, blank=True,choices=title_choices,default="Software Engineer Trainee")
op_skill_required = models.CharField(max_length=3072, blank=True)
op_skill_preferred = models.CharField(max_length=3072, blank=True)
我使用 form.as_table 呈现表单以显示在我的网页中。因此,当我单击其中一个 title_choices 时,根据我要填充表单的 Skill_preferred 和 Skill_required 字段的选择... der 是一种方法吗???