Re: Building a search form with 4 required choices, which will be inserted as arguments in an URL [warning: long question]

2017-10-29 Thread Jack
That makes much more sense. It's my fault for not reading the Django docs properly, but I don't seem to soak in the concepts at all by simply reading. I went with a ListView + get_queryset override. I haven't managed to get the filter to work but the search itself is working properly.

Re: Building a search form with 4 required choices, which will be inserted as arguments in an URL [warning: long question]

2017-10-29 Thread Daniel Roseman
On Monday, 23 October 2017 16:59:36 UTC+1, Jack wrote: > > This is a semi-long question. Please let me know wherever I make a > mistake. > > I'm building a search form with 4 required choices, 1 of the choices is a > CharField with a max_length of 3. The other 3 choices are ChoiceField's. >

Building a search form with 4 required choices, which will be inserted as arguments in an URL [warning: long question]

2017-10-23 Thread Jack Zhang
This is a semi-long question. Please let me know wherever I make a mistake. I'm building a search form with 4 required choices, 1 of the choices is a CharField with a max_length of 3. The other 3 choices are ChoiceField's. Here is a picture of what the search form looks like: