Re: how to add radiobuttons to my ModelForm

2018-06-26 Thread Saloni Kalra
*template:* {% extends "posts/post_base.html" %} {% load bootstrap3 %} {% block post_content %} {% if not form.instance.pk %} Create Post {% else %} Update Post {% endif %} {% csrf_token %} {% bootstrap_form form %} {% endblock %} On Monday, 25 June 2018 23:47:07 UTC+5, alex eckert wrote:

Re: how to add radiobuttons to my ModelForm

2018-06-25 Thread alex eckert
Can you include your template code? The issue could be in there. On Sunday, June 24, 2018 at 10:15:50 AM UTC-5, Saloni Kalra wrote: > > I wish to add radio buttons fill in each parameter of my model and also to > convert it to integer on the backend. But somehow its not changing. Kindly > help.

how to add radiobuttons to my ModelForm

2018-06-24 Thread Saloni Kalra
I wish to add radio buttons fill in each parameter of my model and also to convert it to integer on the backend. But somehow its not changing. Kindly help. Thanks and regards, Saloni *Forms.py* class PostForm(forms.ModelForm): class Meta: fields =