When viewing model entries from within Django Admin, you can specify filters. How can I mimic this behavior? Not to familiar with kwargs
but something similar to this:
foo = Model.objects.filter(**__exact='**')
where the first set of **
would be a field in the model and the second set would be an entry. Basically making the queries variable, based on what the user chooses on the front end. How would I send that variable sort option to the view, and then return it back to the webpage. What about using a dictionary? Please help
This SO question has proven to be a little helpful, but still cannot grasp it completely.