Permalink
Browse files

Prevent null url fields.

  • Loading branch information...
davedash committed Feb 22, 2012
1 parent 3184745 commit 961a01e5071697f3b65703387fdaf4a0197ad4c8
Showing with 1 addition and 1 deletion.
  1. +1 −1 apps/feedback/views.py
View
@@ -140,7 +140,7 @@ def save_opinion_from_form(request, type, ua, form):
opinion = Opinion(
_type=type,
- url=form.cleaned_data.get('url', ''),
+ url=form.cleaned_data.get('url') or '',
description=form.cleaned_data['description'],
user_agent=ua, locale=locale,
manufacturer=form.cleaned_data['manufacturer'],

0 comments on commit 961a01e

Please sign in to comment.