]> git.parisson.com Git - mezzo.git/commitdiff
Update form title, use cri user for cron rules, en locale by default
authorGuillaume Pellerin <guillaume.pellerin@ircam.fr>
Fri, 10 Mar 2017 18:06:43 +0000 (19:06 +0100)
committerGuillaume Pellerin <guillaume.pellerin@ircam.fr>
Fri, 10 Mar 2017 18:07:09 +0000 (19:07 +0100)
app/organization/projects/forms.py
app/settings.py
app/themes/vertigo_starts_eu/templates/projects/project_ict_create.html
bin/update_translation_fields.sh [new file with mode: 0755]
etc/cron.d/app

index c878e37a206cd7eb6bbe920a8916934157dddd73..14c137a3b6ea5225375c637b888be9ba2710487c 100644 (file)
@@ -83,9 +83,10 @@ class ProjectContactInline(InlineFormSet):
     model = ProjectContact
     prefix = 'Contact'
     can_delete = False
-    fields = ['gender', 'person_title', 'first_name', 'last_name', 'address', 'email',
+    fields = ['first_name', 'last_name', 'address', 'email',
                  'telephone', 'address', 'postal_code', 'city', 'country']
 
+
 class ProducerForm(ModelForm):
 
     class Meta:
index 4f583f674bab91a45f3b5b663ab5174950e27512..92412522eea90347549fb76101e08afa20a1e476 100644 (file)
@@ -124,12 +124,12 @@ USE_TZ = True
 
 # Language code for this installation. All choices can be found here:
 # http://www.i18nguy.com/unicode/language-identifiers.html
-LANGUAGE_CODE = "fr"
+LANGUAGE_CODE = "en"
 
 # Supported languages
 LANGUAGES = (
-    ('fr', _('French')),
     ('en', _('English')),
+    ('fr', _('French')),
 )
 
 LOCALE_PATHS = ['locale',]
index f4e123d89c2acbd484e927496d9da2deffef4890..c6b0e68882ec83cafef424ae03a1799a64fc5282 100644 (file)
@@ -34,7 +34,7 @@
     </div>
 
     <div class="row">
-        <h2 class="dotted">{% trans "Project submission form" %}</h2>
+        <h2 class="dotted">{% trans "Project submission form (all fields required)" %}</h2>
         {% errors_for form %}
         <form class="mezzanine-form form" method="post"{% if form.is_multipart %} enctype="multipart/form-data"{% endif %}>
             {% fields_for form %}
diff --git a/bin/update_translation_fields.sh b/bin/update_translation_fields.sh
new file mode 100755 (executable)
index 0000000..55bec14
--- /dev/null
@@ -0,0 +1,3 @@
+#!/bin/sh
+
+docker-compose run app python /srv/app/manage.py update_translation_fields
index 707b96daf6ec31c2ef7e103ae78c7db78631ba3c..1e518e405e78984c549b9964337e1dbf9c502935 100644 (file)
@@ -1,6 +1,6 @@
 APP=/srv/vertigo
 PATH=/usr/bin:/bin:/usr/sbin:/sbin:/usr/local/bin
 
-0    */6  * * *  root cd $APP; bin/push.sh >> var/log/cron/push.log
-*/10 *    * * *  root cd $APP; bin/poll_twitter.sh >> var/log/cron/pull_twitter.log
-#0,30 *    * * * root cd $APP; bin/upgrade.sh >> var/log/cron/upgrade.log
+0     */6  * * * cri cd $APP; bin/push.sh >> var/log/cron/push.log
+*/10  *    * * * cri cd $APP; bin/poll_twitter.sh >> var/log/cron/pull_twitter.log
+#0,30 *    * * * cri cd $APP; bin/upgrade.sh >> var/log/cron/upgrade.log