python (65.2k questions)
javascript (44.3k questions)
reactjs (22.7k questions)
java (20.8k questions)
c# (17.4k questions)
html (16.3k questions)
r (13.7k questions)
android (13k questions)
How to instantiate model with init function in modelforms?
I have a program that uploads a csv of data in order to map values in the csv to other values. In order to do this, the user must select which columns in the csv they need to create the mapping, so th...
amiller
Votes: 0
Answers: 0
Populate Dropdown from another Table/View
I have a site model which is connected to the municipality where the site is located. Using this municipality in a dropdown field in the create form leads to quite long loading times. The reason is th...
MightyRavendark
Votes: 0
Answers: 0
Pre populating a django form using Initial not working
I am trying to save a modelform by prepopulating 'template_name' field . As per django documentation and other threads it is clear that initial parameter should work but i just can't make it work for ...
Jhonty4
Votes: 0
Answers: 3
how to have a django form validator run on each object with ModelMultipleChoiceField rather than the queryset as a whole
I have a modelform which generates a series of checkboxes to add children to a parent part. I have created a validator that checks for cyclic relationships. I'm currently getting errors however beca...
Chonker
Votes: 0
Answers: 1