I have model:
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')
and modelForm:
class TestPoljaForm(ModelForm):
class Meta:
model = TestPolja
How to change TestPoljaForm to add class attribute to <input> tag?
How to add widget?