{% extends 'core/base.html' %}

{% load crispy_forms_tags %}

{% block meta %}
<title>Chowist | Places</title>
{% endblock %}

{% block content %}
<div class="container lead-container pb-3">
  <h1>Places</h1>
  <p class="lead">Find the places you love.</p>
  <p>There are <a href="{% url 'places:restaurant-list' %}">many restaurants</a> that you can choose from.</p>
  <p>If you are still undecided, please fill out the form below:</p>
  <form class="form-horizontal" action="" method="get">
    {% csrf_token %}
    {{ form|crispy }}
    <button type="submit" class="btn btn-primary">Submit</button>
    <a href="{% url 'places:restaurant-random' %}" class="btn btn-secondary">Random</a>
  </form>
</div>
{% endblock %}

{% extends 'core/base.html' %}

{% load crispy_forms_tags %}

{% block meta %}
<title>Chowist | Places</title>
{% endblock %}

{% block content %}
<div class="container lead-container pb-3">
  <h1>Places</h1>
  <p class="lead">Find the places you love.</p>
  <p>There are <a href="{% url 'places:restaurant-list' %}">many restaurants</a> that you can choose from.</p>
  <p>If you are still undecided, please fill out the form below:</p>
  <form class="form-horizontal" action="" method="get">
    {{ form|crispy }}
    <button type="submit" class="btn btn-primary">Submit</button>
    <a href="{% url 'places:restaurant-random' %}" class="btn btn-secondary">Random</a>
  </form>
</div>
{% endblock %}

Remove csrf_token from GET form
Remove csrf_token from GET form
