M
M
maxell2019-09-14 21:50:25
Django
maxell, 2019-09-14 21:50:25

Django How to make default Get requests?

There are 2 Get requests to filter the product (see picture)
5d7d35baa2cc9258485071.jpeg

<form class ="form for_change_items" method="get" name="for_change_items" >
                                   
                                        <div class="form-check" >
                                            <input class="form-check-input" type="radio" name="change_items" id="2_items" value="2_items"   onClick="for_change_items.submit()" >
                                                <label class="form-check-label" for="2_items">
                                                    <img class="img_right_menu" src="../../../static/img/2_items.jpg" alt ="Профиль">
                                                </label>
                                            <input class="form-check-input" type="radio" name="change_items" id="many_items" value="many_items"   onClick="for_change_items.submit()" >
                                                <label class="form-check-label" for="many_items">
                                                    <img class="img_right_menu" src="../../../static/img/many_items.jpg" alt ="Профиль">
                                                </label>
                                        </div>
                            </form>

How can I make it so that when I enter the page, I immediately get some default values
​​For example = 127.0.0.1:8000/first_item/?model_or_item=model?cha...

Answer the question

In order to leave comments, you need to log in

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question