我有模式:如何類屬性添加到的ModelForm
class TestPolja(models.Model):
class Meta:
verbose_name = 'Test polja'
integerPolje1 = models.IntegerField('integerPolje1')
charPolje1 = models.CharField('charPolje1',max_length = 1024)
bigint1 = models.BigIntegerField('bigint1',default = 67573737)
date = models.DateField('date')
和的ModelForm:
class TestPoljaForm(ModelForm):
class Meta:
model = TestPolja
如何改變TestPoljaForm
添加class
屬性<input>
標籤?
如何添加小部件?
和每個領域我必須重複低谷各個領域,並添加小部件? – milandjukic88
@ milandjukic88檢查更新 – ndpu
瞭解它:)。謝謝! – milandjukic88