i have model name app_type , soa.
class soa(models.model): app_type = models.manytomanyfield(app_type, verbose_name='application type')
in forms.py
class soaform(forms.modelform): app_type = forms.modelmultiplechoicefield(widget=forms.checkboxselectmultiple(), queryset=app_type.objects.all(), label='application type') class meta: model = soa
the field form rendered vertically in django admin consuming space. there way render field form horizantally? or references appreciated.
i've done using crispy fields. simple , usefull. plus can use bootstrap toolkit. , yours life more esier.
http://django-crispy-forms.readthedocs.org/en/1.1.1/tags.html
Comments
Post a Comment