[Solved]-Easy way to get crispy forms to work with django-filter

5👍

I just needed to add the load crispy tags.

{% extends "base.html" %}
{% load crispy_forms_tags %}

{% block content %}
    <form action="" method="get">
        {{ filter.form|crispy }}
        <input type="submit" />
    </form>
    {% for obj in filter %}
        {{ obj.name }} - ${{ obj.price }}<br />
    {% endfor %}
{% endblock %}
👤hum3

Leave a comment