Skip to content

Crispy Forms CSRF token error #3637

Closed
Closed

Description

@nanuxbe

Crispy forms default to POST method resulting in a CSRF Token exception when trying to use filters + crispy forms (submitting the form by hitting since there is no submit button, see #3636)
.

When initially rendering an API page with filters and crispy forms, the server also spits out this error (probably because crispy forms is trying to add the token to the form):
venv/lib/python3.5/site-packages/django/template/defaulttags.py:66: UserWarning: A {% csrf_token %} was used in a template, but the context did not provide the value. This is usually caused by not using RequestContext.

Activity

  1. added this to the 3.3.2 Release milestone on Nov 16, 2015
  2. jpadilla commented on Nov 18, 2015

    @jpadilla
    Contributor

    This is related to #3636 (comment)

  3. added a commit that references this issue on Jan 1, 2016
    ef49168
  4. added a commit that references this issue on Jan 1, 2016
    dafbe65
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

      Milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions