<form action="{% url 'profile' %}" method="post">
{% csrf_token %}
<input type="submit" class="btn btn-primary btn-block", value="Сделать капитаном" onClick='location.href="https://{% url "home" %}. html/"'>
<input type="hidden", value="{{ nick }}" name="make_captain"/>
</form>