Pull requests

#5 Declined
Repository
stillinbeta
Branch
default
Repository
romke
Branch
default

Quoted url block for django1.5

Author
  1. Ellie Frost
Reviewers
Description

Django 1.5 requires URL blocks to be quoted, it seems.

  • Learn about pull requests

Comments (3)

  1. Roman Barczyński repo owner

    this is backward incompatible with previous django instalations, there are some big vendors using 1.3 (e.g. bitbucket ;P)

    this form is rendered only on /decide/ page and action leads to /decide/ as well, maybe better approach would be to put "." there?

    <form method="post" action=".">{% csrf_token %}
    
  2. Andrew Rowls

    When it comes to forms, an empty action (action="") translates to "the current url". When action is omitted, it defaults to empty, meaning you should be able to do this:

    <form method="post">{% csrf_token %}