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
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
2 matches
Mail list logo