Questions tagged [multiplechoicefield]
43 questions
0
votes
1 answer
Django: MultiChoiceField does not show saved choices added after creation
I am currently trying to create a dynamic product model that will allow admins to create add their own "option sets" to products.
For example, Product A has flap valve with 400mm, 500mm and 600mm widths available.
To facilitate this I have created…

Pete Dermott
- 663
- 1
- 9
- 20
0
votes
0 answers
Submit MultipleChoiceField in Django with custom multiselect jQuery box
I am trying to submit a multiple choice field using this jQuery plugin to render the multiple choices.
My form is as follows:
class BackupForm(forms.Form):
def __init__(self, *args, **kwargs):
self.user = kwargs.pop('user', None)
…

Hannon Queiroz
- 443
- 4
- 22
0
votes
1 answer
Storing Multiple choice answers of a Module Options Form in a Microsoft Access Database
I currently am trying to work out how to create a relational database for a University Module Options form. First you enter your student ID, Name, Surname and select your degree programme e.g. Human Resource Management then choose multiple modules…

user3167227
- 23
- 1
- 6
0
votes
1 answer
Django Rest Framework mulitplechoicefield - int not iterable
I am beginning to use and implement the Django Rest Framework and I have an issue with the multiple choice field.
My variable "CHOICES" looks like the following
(('0', 'Read Only'), ('5', 'Operator 1'), ('7', 'Operator 2'), ('100', 'Supervisor 1'),…

Michaela Ervin
- 702
- 8
- 25
0
votes
1 answer
[Django][MultipleChoiceField] Passing checkboxes values to server
could you let me know how to pass my checkbox values to server?
views.py
def viewtest(request):
if request.method == "POST":
form=testForm(request.POST)
if(form.is_valid():
form.save()
elif request.method ==…

user1429883
- 63
- 1
- 8
0
votes
0 answers
Django | Is it a right way to use render_to_response?
I've got simple project, that do almost nothing now - there is MultipleChoiceField with some Person-values and when user selects some values and clicks "submit" button - I'm sarching for Houses, where selected guys lived.
There is about 1.5k…

vadimb
- 462
- 3
- 14
0
votes
1 answer
Django processing MultipleChoiceField data takes too long
I'm new in Django and got problems with high POST-request time of MultipleChoiceField. It has list of persons, and i want to display list of addresses, where these persons lived with time they lived there, but my solution is too slow.
So if i…

vadimb
- 462
- 3
- 14
0
votes
1 answer
Django: Unable to populate checkbox using MultipleChoiceField with CheckboxSelectMultiple
I am trying to save the choices(options) selected by the user in the database and populate(check/select) the same using the data saved in the database.
Model:
class ScheduledEvent(models.Model):
event_id =…

ashu
- 197
- 1
- 10
0
votes
1 answer
Change initial form field value in views (Django)
I have three form fields that I want to modify/change value of in my views - function one_labeling() before posting the form in the template. The first field is label, where I want to change the initial value in views. Secondly I have two choice…

user1749431
- 559
- 6
- 21
0
votes
1 answer
Saving MultipleChoiceField in django as a list
I have a Django application and want to display multiple choice checkboxes in a user's profile. They will then be able to select multiple items.
I am able save the data in the database, but it is saving like '[u'A', u'B']'.
What should i do to save…

vivekanandhan
- 1
- 2
0
votes
0 answers
Django - Multiple Choice Field - Form Not saving
I have a Django application and want to display multiple choice checkboxes in a user's profile. They will then be able to select multiple items.
But I am not able to save the form that is created. Can anyone help?
My models.py looks like this:
…

vivekanandhan
- 1
- 2
0
votes
1 answer
Django MultpleSelectionField usage and error
I have the following code
models.py
fitness_choices = (('wl', 'Weight Loss'), ('ft', 'Firming and Toning'),
('yo', 'Yoga'), ('ot', 'Others'), )
periods_to_train = (('da', 'Daily'), ('ft', 'Few Times A Week'),
…

Shiva Krishna Bavandla
- 25,548
- 75
- 193
- 313
-1
votes
1 answer
cannot save MultipleChoiceField in django
I am having problems saving a MultipleChoiceField on my test server (with Apache). However, it works on my local machine (django server).
In a form, I have checkboxes that I can check and uncheck. When I click on a save button, the data related to…

rom
- 3,592
- 7
- 41
- 71