Process 2 forms from 2 html files in Django

Sorry for my bad english

I've got "topics.html" file, that extends "base.html". In "base" I've got search form. In "topics" I've got any checkboxes. How can I connect 2 forms in 1 request?

Base:

<form id="form_1" action="{% url 'topics' %}"><input type="search" id="search" name="search" placeholder="Search"></form>

Topics:

<form id="form_1" action="{% url 'topics' %}">
 <div class="typess">
  <h1 class="vk">Categories:</h1>
  {% for typee, name in types.items %}
   <label>
    <input type="checkbox" style="display:none" value="{{ typee }}" name="category" {% if typee in categories %} checked {% endif %}>
    <span class="typee" title="{{ name }}"><i class="{{ typee }}"></i>{{ name }}</span>
   </label>
  {% endfor %}
 </div>
</form>

It should connect in "topics" function:

def topics(request):
    info = []
    categoriess = request.GET.getlist('category')
    typess = request.GET.getlist('type')
    search = request.GET.get('search')
    if categoriess:
       ...

But when I run code, it's not see the checkboxes

Back to Top