Возникла проблема при использовании form_for_model при формировании select списка
models.py
...
class Advertisement(models.Model):
...
AIRBAG_CHOICES = (
('no', _('No')),
('d', _('for driver')),
('dp', _('for driver and passenger')),
('dp+side', _('for driver and passenger + side')),
('6', _('6 airbags')),
('8', _('8 airbags')),
)
....
airbag = models.CharField(choices=AIRBAG_CHOICES, max_length=7, blank=True, verbose_name=_('Airbags'))
Код:
....
class EditAutoGeneralForm(forms.Form):
...
EditAutoElectronicForm = forms.form_for_model(Advertisement, fields=(
'airbag',
))
Заранее благодарен