I have the following HTML form I am submitting to Django using post:
input id="array" type="text" class="arrayinput" name="array[]" placeholder="Thing 1">
input id="array" type="text" class="arrayinput" name="array[]" placeholder="Thing 2">
input id="array" type="text" class="arrayinput" name="array[]" placeholder="Thing 3">
And in the model of this form I have:
array = ListCharField(max_length=255, base_field=CharField(max_length=255, blank=True, null=True))
However when I submit this array, it tells me that the form is missing the field array.
I assume this is because the field is called array[] but obviously I cannot name a python variable this. On the other hand, I cannot find any way to make a HTML array that has the functionality I need.