From a8fcba0f6937b4306aa52eabe2bc37252da9b875 Mon Sep 17 00:00:00 2001 From: Emanuel Schuetze Date: Mon, 2 Apr 2012 07:38:55 +0200 Subject: [PATCH] #82: New comment field for participant form (database changes: syncdb required) --- openslides/participant/models.py | 1 + openslides/participant/templates/participant/import.html | 4 +++- .../participant/templates/participant/overview.html | 6 ++---- openslides/participant/views.py | 8 +++++--- 4 files changed, 11 insertions(+), 8 deletions(-) diff --git a/openslides/participant/models.py b/openslides/participant/models.py index 32c06d3a3..1442a5b0a 100644 --- a/openslides/participant/models.py +++ b/openslides/participant/models.py @@ -34,6 +34,7 @@ class Profile(models.Model): group = models.CharField(max_length=100, null=True, blank=True, verbose_name = _("Group")) type = models.CharField(max_length=100, choices=TYPE_CHOICE, blank=True, verbose_name = _("Typ")) committee = models.CharField(max_length=100, null=True, blank=True, verbose_name = _("Committee")) + comment = models.CharField(max_length=255, null=True, blank=True, verbose_name = _("Comment")) firstpassword = models.CharField(max_length=100, null=True, blank=True, verbose_name = _("First Password")) diff --git a/openslides/participant/templates/participant/import.html b/openslides/participant/templates/participant/import.html index 5acdee1b7..0d86d4c5c 100644 --- a/openslides/participant/templates/participant/import.html +++ b/openslides/participant/templates/participant/import.html @@ -5,7 +5,9 @@

{% trans 'Import participants' %}

{% trans 'Select a CSV file to import participants!' %}

-

{% trans '(Required comma separated values: first_name, last_name, gender, group, type, committee)' %}

+

{% trans 'Required comma separated values: first_name, last_name, gender, group, type, committee, comment' %}
+ {% trans 'CSV file encoding: UTF-8 (Unicode).' %} +

{% csrf_token %} {{ form.as_p }}