[damned-lies] Fixed empty value of author form widget
- From: Claude Paroz <claudep src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [damned-lies] Fixed empty value of author form widget
- Date: Fri, 22 Aug 2014 06:14:16 +0000 (UTC)
commit 52a74999f58374ada2d3c75fcf845da7ac74f628
Author: Claude Paroz <claude 2xlibre net>
Date: Fri Aug 22 08:14:02 2014 +0200
Fixed empty value of author form widget
vertimus/forms.py | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
---
diff --git a/vertimus/forms.py b/vertimus/forms.py
index 8ccb155..5b627c1 100644
--- a/vertimus/forms.py
+++ b/vertimus/forms.py
@@ -42,7 +42,7 @@ class ActionWidget(forms.Select):
class AuthorWidget(forms.Select):
""" Custom widget to disable people without full name """
def render_options(self, choices, selected_choices):
- output = ["<option value=\"None\">--------</option>"]
+ output = ["<option value=\"\">--------</option>"]
field = self.choices.field
for obj in field.queryset.all():
val, label = field.prepare_value(obj), field.label_from_instance(obj)
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]