模型.py:
class ExperienceSynopsis(Audit):
user = models.ForeignKey(User, null = True, blank = True)
area_skill = models.CharField(max_length = 50, help_text = 'Example: Testing,Development,etc..')
experience = models.CharField(max_length = 50)
def __unicode__(self):
return self.area_skill
表格.py:
class ExperienceSynopsisForm(forms.Form):
area_skill = fields.CharField(max_length=50, help_text = 'Example: Testing,Development,etc..')
experience = fields.CharField(max_length=50)
ExperienceFormset = formsets.formset_factory(ExperienceSynopsisForm, formset = RequiredFormSet, extra = 0)
我想在 admin.py 中添加表单集。如何为此模型启用管理员。请帮助我。