【发布时间】:2013-05-15 01:56:48
【问题描述】:
class BoxModel(models.Model):
box_length = models.FloatField(default=1, help_text=_('Length'))
box_width = models.FloatField(default=1, help_text=_('Width'))
box_height = models.FloatField(default=1, help_text=_('Height'))
box_weight = models.FloatField(help_text=_('Weight'))
box_volume = models.FloatField(blank=True, null=True, help_text=_('Volume'))
现在我想使用 Django 管理界面尽可能高效地创建 20 个不同的 BoxModel。我想把它作为一个表格,您可以在其中通过标签浏览所有字段,然后让 jQuery 自动添加一个新行。
怎么做?
【问题讨论】:
标签: jquery django admin formset