Re: How to invoke Sub Form which have MULTIPLE OPTIONS to choose inside Django Form.

2020-05-20 Thread Devansh Chaubey
Hey Chaitanya , You can do something like this In the models.py CHOICES=[('Basic','Basic'), ('Standard','Standard'), ('Advanced','Advanced')] class Modelname(models.Model): pack=models.CharField(max_length=12,choices=CHOICES,blank=True) *Forms.py class Formname(forms.ModelForm): class *meta: * mode

Re: CSS with Django forms

2020-05-15 Thread Devansh Chaubey
Hey Anubhav You can use django-widget-tweaks package https://pypi.org/project/django-widget-tweaks/ See this. You can make own css styling using class on forms. On Fri, 15 May 2020 at 00:10, Anubhav Madhav wrote: > Thankyou Clive!! I know I can use CSS like that, but if I do that the > problem I