All Questions
9 questions
3
votes
0
answers
306
views
Django form for product stock, where products from the same batch must be merged
Here is the context first. I have a 'Stock' table, in which I record all the stocks with as information: the product, the ...
1
vote
0
answers
659
views
Putting a multichoicefield under a dropdown button
I am building a web app in Django where one of the form fields is a multiplechoicefield from a many2many object that I use to select users that are allowed to edit the post. In standard form the field ...
1
vote
1
answer
708
views
Using a form with formsets in Django
I'm learning Django and making my (technically second) project.
The project features several apps, including player_interface and manager_interface.
Here's the player_interface/models.py:
...
0
votes
3
answers
6k
views
Button to dynamically clone a form field
I am very new to javascript and started with a very basic add button to my django app. Everything I found was using jQuery but for only one small script jQuery seems to be a too big overhead for me. ...
3
votes
1
answer
63
views
Profile creation
I was creating a view with Django that would create a user profile for a website and this is what I came up with:
...
3
votes
1
answer
3k
views
simple form validation
i've just started to learn python /django ..
im coming from php world ...i mostly struggle with None values which are new to me .. in php i mostly did my boll checking with true/false but in python ...
2
votes
1
answer
976
views
Book database for a library system
I am writing a book database, and ultimately a library system, in Django. When a book is created without a title set, the ISBN will be used to automatically fetch book data from WorldCat I have just ...
8
votes
2
answers
235
views
How to DRY up my forms.py?
I have two ModelForms that are the same, except that one of them has its form layout built in a view and one has a submit button. These are pretty long and I have a ...
3
votes
0
answers
2k
views
Django form validation based on the contents of uploaded files
I have a Django form with a lot of fields, including some FileFields. I want to validate the form based on the contents of the files: they must be valid gdal datasets, and if both are present (one of ...