pinax/django-user-accounts — pull request #49 by bennylope (2012-09-20 13:35:26+00:00)
Title: get_context_data key misses return as "None" and possibly rendered in template

Both the empty string and `None` evaluate to not true, but `None` will be displayed as "None" in a template. Setting an empty string default obviates the need for template conditionals to display or not display the next value.

This:

```html

```

Will, with default values, render as this:

```html

```

Which results in a `NoReverseMatch` error because the given URL path is "None". The solution is a template conditional:

```html
{% if redirect_field_value %}

{% endif %}
```

But this shouldn't be necessary. Since the empty string also evaluate to False this shouldn't be expected to break backwards compatibility for existing code.