From c5ad46c411d67697f2a23cfa6bccc31ee9ca973e Mon Sep 17 00:00:00 2001 From: Jan Tuomi Date: Mon, 16 Oct 2017 12:42:12 +0300 Subject: [PATCH] Add category to role model --- locale/en/LC_MESSAGES/django.mo | Bin 7141 -> 7141 bytes locale/en/LC_MESSAGES/django.po | 134 ++++++++++++++----- locale/fi/LC_MESSAGES/django.mo | Bin 10580 -> 11243 bytes locale/fi/LC_MESSAGES/django.po | 131 +++++++++++++----- members/templates/application_form_base.html | 2 +- webapp/forms.py | 2 +- webapp/migrations/0029_baserole_category.py | 20 +++ webapp/models.py | 18 +++ 8 files changed, 236 insertions(+), 71 deletions(-) create mode 100644 webapp/migrations/0029_baserole_category.py diff --git a/locale/en/LC_MESSAGES/django.mo b/locale/en/LC_MESSAGES/django.mo index 467a9896026d64422093c6bd47dc4f61c397b19f..7317b08406262f8865e4c83742c324be129ac244 100644 GIT binary patch delta 20 bcmaEA{?vTKT_JWe1w$h%BZJLPgcvyiR!Rov delta 20 bcmaEA{?vTKT_JWO1p@;s6VuI4gcvyiRw@SP diff --git a/locale/en/LC_MESSAGES/django.po b/locale/en/LC_MESSAGES/django.po index ac4ecc7..9070691 100644 --- a/locale/en/LC_MESSAGES/django.po +++ b/locale/en/LC_MESSAGES/django.po @@ -8,7 +8,7 @@ msgid "" msgstr "" "Project-Id-Version: PACKAGE VERSION\n" "Report-Msgid-Bugs-To: \n" -"POT-Creation-Date: 2017-10-12 00:48+0300\n" +"POT-Creation-Date: 2017-10-16 12:20+0300\n" "PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n" "Last-Translator: FULL NAME \n" "Language-Team: LANGUAGE \n" @@ -167,8 +167,8 @@ msgstr "Select rotation to edit" msgid "id" msgstr "id" -#: infoscreen/templates/infoscreen_admin.html:141 webapp/models.py:93 -#: webapp/models.py:126 webapp/templates/kaehmy_list.html:40 +#: infoscreen/templates/infoscreen_admin.html:141 webapp/models.py:110 +#: webapp/models.py:144 webapp/templates/kaehmy_list.html:40 msgid "Name" msgstr "Name" @@ -210,7 +210,7 @@ msgstr "First name" msgid "Last name" msgstr "Last name" -#: members/models.py:16 webapp/models.py:127 +#: members/models.py:16 webapp/models.py:145 #: webapp/templates/kaehmy_list.html:44 msgid "Email" msgstr "Email" @@ -556,14 +556,18 @@ msgstr "Copyright Aalto-yliopiston Sähköinsinöörikilta ry" msgid "Custom roles" msgstr "Total challenges:" -#: webapp/forms.py:30 +#: webapp/forms.py:30 webapp/forms.py:33 #, fuzzy #| msgid "Total challenges:" msgid "Preset roles" msgstr "Total challenges:" -#: webapp/forms.py:40 -msgid "Invalid value" +#: webapp/forms.py:41 +msgid "Invalid phone number" +msgstr "" + +#: webapp/forms.py:49 +msgid "Custom role with the same name already exists." msgstr "" #: webapp/models.py:17 @@ -622,95 +626,165 @@ msgstr "Rotation" msgid "Registrations" msgstr "Rotations" -#: webapp/models.py:94 webapp/models.py:166 +#: webapp/models.py:94 +#, fuzzy +#| msgid "Corporate" +msgid "Corporate affairs" +msgstr "Corporate" + +#: webapp/models.py:95 webapp/templates/freshmen.html:7 +#: webapp/templates/navigation.html:16 +msgid "Freshmen" +msgstr "Freshmen" + +#: webapp/models.py:96 webapp/templates/international.html:7 +#: webapp/templates/navigation.html:30 +msgid "International" +msgstr "International" + +#: webapp/models.py:97 +#, fuzzy +#| msgid "External image" +msgid "External affairs" +msgstr "External image" + +#: webapp/models.py:98 +msgid "Media" +msgstr "" + +#: webapp/models.py:99 +msgid "Technology" +msgstr "" + +#: webapp/models.py:100 +msgid "Wellbeing" +msgstr "" + +#: webapp/models.py:101 +msgid "Elepaja" +msgstr "" + +#: webapp/models.py:102 +msgid "Ceremonies" +msgstr "" + +#: webapp/models.py:103 +msgid "Culture" +msgstr "" + +#: webapp/models.py:104 +msgid "Studies" +msgstr "" + +#: webapp/models.py:105 +#, fuzzy +#| msgid "Sössö articles" +msgid "Sössö magazine" +msgstr "Sössö articles" + +#: webapp/models.py:106 +#, fuzzy +#| msgid "Applications" +msgid "Alumni relations" +msgstr "Applications" + +#: webapp/models.py:107 +msgid "Others" +msgstr "" + +#: webapp/models.py:111 webapp/models.py:184 #, fuzzy #| msgid "Add member" msgid "Board member" msgstr "Add member" -#: webapp/models.py:98 +#: webapp/models.py:112 +msgid "Category" +msgstr "" + +#: webapp/models.py:116 #, fuzzy #| msgid "Add member" msgid "board member" msgstr "Add member" -#: webapp/models.py:104 +#: webapp/models.py:122 #, fuzzy #| msgid "Duration" msgid "Description" msgstr "Duration" -#: webapp/models.py:105 +#: webapp/models.py:123 msgid "Summary" msgstr "" -#: webapp/models.py:112 +#: webapp/models.py:130 #, fuzzy #| msgid "Total challenges:" msgid "Preset kaehmy role" msgstr "Total challenges:" -#: webapp/models.py:113 +#: webapp/models.py:131 #, fuzzy #| msgid "Total challenges:" msgid "Preset kaehmy roles" msgstr "Total challenges:" -#: webapp/models.py:120 +#: webapp/models.py:138 #, fuzzy #| msgid "Total challenges:" msgid "Custom kaehmy role" msgstr "Total challenges:" -#: webapp/models.py:121 +#: webapp/models.py:139 #, fuzzy #| msgid "Total challenges:" msgid "Custom kaehmy roles" msgstr "Total challenges:" -#: webapp/models.py:140 +#: webapp/models.py:158 msgid "Message" msgstr "" -#: webapp/models.py:142 +#: webapp/models.py:160 msgid "Timestamp" msgstr "" -#: webapp/models.py:160 webapp/models.py:224 +#: webapp/models.py:178 webapp/models.py:242 msgid "Phone number" msgstr "" -#: webapp/models.py:161 +#: webapp/models.py:179 msgid "Year" msgstr "" -#: webapp/models.py:162 +#: webapp/models.py:180 msgid "Text" msgstr "" -#: webapp/models.py:164 +#: webapp/models.py:182 msgid "Custom role name" msgstr "" -#: webapp/models.py:174 +#: webapp/models.py:192 #, fuzzy #| msgid "Member applications" msgid "Kaehmy application: {}" msgstr "Member applications" -#: webapp/models.py:209 +#: webapp/models.py:227 msgid "Role" msgstr "" -#: webapp/models.py:211 +#: webapp/models.py:229 msgid "Start date" msgstr "" -#: webapp/models.py:212 +#: webapp/models.py:230 msgid "End date" msgstr "" -#: webapp/models.py:222 +#: webapp/models.py:240 msgid "Official" msgstr "" @@ -730,18 +804,10 @@ msgstr "Contact" msgid "Event calendar" msgstr "Event calendar" -#: webapp/templates/freshmen.html:7 webapp/templates/navigation.html:16 -msgid "Freshmen" -msgstr "Freshmen" - #: webapp/templates/guild.html:7 msgid "Kilta" msgstr "Guild" -#: webapp/templates/international.html:7 webapp/templates/navigation.html:30 -msgid "International" -msgstr "International" - #: webapp/templates/jobs.html:7 webapp/templates/navigation.html:20 msgid "Jobs" msgstr "Jobs" diff --git a/locale/fi/LC_MESSAGES/django.mo b/locale/fi/LC_MESSAGES/django.mo index b7afd579d45c1f58a952d099b271046d7ecbc511..bae8927ce573a7896898a714e3d376ba0ae543f6 100644 GIT binary patch delta 4762 zcmYk<32;>P0mt$GLJ}b1Od=t{m<0la0ud>ofC!XB+7O@wL_w(!@<<+RHt8M-A=(w? zvK$pwN`)57Ar>j;B3O>fIkdJ)I|CK1BUquML$wZ5X*rzf_qY2`r*HV}=l_4l|9bE3 zh6_`#&xn1TownYvohA2@u^Gm+@);9otG&jo=xB_KFXB1;C$`4Jol>5_mehZbeeqqS z33JQtH`&HyQBOlIH61Y%yCGe~Oh0?VQ0%~gakf4k+f#RJy$;pDGuG9pF>c0wxC{H^ zB}~JN9AnyH7V5lwTknNBJ}9|AX3S6un$dXF$R=YOoQbWl5<6o63-JZJe+v$#z7uu+ zWn|LkbL@e4tVOxT+(&&37U3LQe_nO^H(My=<4M#2{)$?OzoTYw6E%>uds4PVCTVh! zK1^@a$_&R+oQRrn6KbX_tgBJ&tV7+RjTqCt*+M}V>_)A`5!8jJQ4RkNb>0W4^RA&9 zx`F9<8+DzQN&DNN_II-8p>Aa%YNh(21~8;E_g@{1uqRAH)t|yH7(@+ZIjVzIsD{_0 zI@*LCF0TM~ggTn1pGE>Zk{nU_aC?n2y{9 zGZ!_Wg{YZ4i+cK(+x;t1GkXc?!)!neWDly{gQ)9{ThGNP=%M*DYH2^Ueue7z8&rc? z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!RK)L{ndsm?~V_r{B`3}YRl23U`=mBMWL zca0R{aUW`l-#{(>`=}RBGqNZyAgu3BtsIB@C^-z9;>i8J48}0<^8A|6n+#CBL54x+u5H?_U zd=|B$A9rK@drNA`TuHK<_!vm;COYWPT@fq!AKSd-q?AadwamrUWH@<_tRr`lcrt>NkTb_- z3VM39^Y@WWg!g;w&{}BYx09!cUj7qE%VRc`mE4iLmnpQk;h5w zb%TS6j_b*cSjqpG4D(vlA81idpuB`ECs~Al9^7?A$3x_5qW)v=vh#6^Djb8zvm{9R zkwt{Z+^r#Jj&usQk_~4X@OiSBRFJXccA{e_nNKpw4diBW8QFPe|8JvGPePZ3^XaR_}uot(=ArlCahFuDl>tp2oit6z(PCNpY;vxfgK`nM6if zn\n" "Language-Team: LANGUAGE \n" @@ -168,8 +168,8 @@ msgstr "Valitse muokattava rotaatio" msgid "id" msgstr "id" -#: infoscreen/templates/infoscreen_admin.html:141 webapp/models.py:93 -#: webapp/models.py:126 webapp/templates/kaehmy_list.html:40 +#: infoscreen/templates/infoscreen_admin.html:141 webapp/models.py:110 +#: webapp/models.py:144 webapp/templates/kaehmy_list.html:40 msgid "Name" msgstr "Nimi" @@ -209,7 +209,7 @@ msgstr "Etunimi" msgid "Last name" msgstr "Sukunimi" -#: members/models.py:16 webapp/models.py:127 +#: members/models.py:16 webapp/models.py:145 #: webapp/templates/kaehmy_list.html:44 msgid "Email" msgstr "Sähköposti" @@ -547,13 +547,17 @@ msgstr "Copyright Aalto-yliopiston Sähköinsinöörikilta ry" msgid "Custom roles" msgstr "Uudet virat" -#: webapp/forms.py:30 +#: webapp/forms.py:30 webapp/forms.py:33 msgid "Preset roles" msgstr "Kaehmyvirat" -#: webapp/forms.py:40 -msgid "Invalid value" -msgstr "Epäkelpo arvo" +#: webapp/forms.py:41 +msgid "Invalid phone number" +msgstr "Virheellinen puhelinnumero" + +#: webapp/forms.py:49 +msgid "Custom role with the same name already exists." +msgstr "Samanniminen virka on jo olemassa" #: webapp/models.py:17 msgid "Webapp" @@ -603,79 +607,141 @@ msgstr "Ilmoittautuminen" msgid "Registrations" msgstr "Ilmoittautumiset" -#: webapp/models.py:94 webapp/models.py:166 +#: webapp/models.py:94 +msgid "Corporate affairs" +msgstr "Yrityssuhteet" + +#: webapp/models.py:95 webapp/templates/freshmen.html:7 +#: webapp/templates/navigation.html:16 +msgid "Freshmen" +msgstr "Fuksit" + +#: webapp/models.py:96 webapp/templates/international.html:7 +#: webapp/templates/navigation.html:30 +msgid "International" +msgstr "International" + +#: webapp/models.py:97 +msgid "External affairs" +msgstr "Ulkosuhteet" + +#: webapp/models.py:98 +msgid "Media" +msgstr "Media" + +#: webapp/models.py:99 +msgid "Technology" +msgstr "Teknologia" + +#: webapp/models.py:100 +msgid "Wellbeing" +msgstr "Hyvinvointi" + +#: webapp/models.py:101 +msgid "Elepaja" +msgstr "Elepaja" + +#: webapp/models.py:102 +msgid "Ceremonies" +msgstr "Hupitapahtumat" + +#: webapp/models.py:103 +msgid "Culture" +msgstr "Kulttuuri" + +#: webapp/models.py:104 +msgid "Studies" +msgstr "Opinnot" + +#: webapp/models.py:105 +msgid "Sössö magazine" +msgstr "Kiltalehti Sössö" + +#: webapp/models.py:106 +msgid "Alumni relations" +msgstr "Alumnisuhteet" + +#: webapp/models.py:107 +msgid "Others" +msgstr "Muut" + +#: webapp/models.py:111 webapp/models.py:184 msgid "Board member" msgstr "Hallituksen jäsen" -#: webapp/models.py:98 +#: webapp/models.py:112 +msgid "Category" +msgstr "Kategoria" + +#: webapp/models.py:116 msgid "board member" msgstr "Hallituksen jäsen" -#: webapp/models.py:104 +#: webapp/models.py:122 msgid "Description" msgstr "Kuvaus" -#: webapp/models.py:105 +#: webapp/models.py:123 msgid "Summary" msgstr "Tiivistelmä" -#: webapp/models.py:112 +#: webapp/models.py:130 msgid "Preset kaehmy role" msgstr "Kaehmyvirka" -#: webapp/models.py:113 +#: webapp/models.py:131 msgid "Preset kaehmy roles" msgstr "Kaehmyvirat" -#: webapp/models.py:120 +#: webapp/models.py:138 msgid "Custom kaehmy role" msgstr "Uusi virka" -#: webapp/models.py:121 +#: webapp/models.py:139 msgid "Custom kaehmy roles" msgstr "Uudet kaehmyvirat" -#: webapp/models.py:140 +#: webapp/models.py:158 msgid "Message" msgstr "Viesti" -#: webapp/models.py:142 +#: webapp/models.py:160 msgid "Timestamp" msgstr "Aikaleima" -#: webapp/models.py:160 webapp/models.py:224 +#: webapp/models.py:178 webapp/models.py:242 msgid "Phone number" msgstr "Puhelinnumero" -#: webapp/models.py:161 +#: webapp/models.py:179 msgid "Year" msgstr "Vuosi" -#: webapp/models.py:162 +#: webapp/models.py:180 msgid "Text" msgstr "Teksti" -#: webapp/models.py:164 +#: webapp/models.py:182 msgid "Custom role name" msgstr "Uusi virka" -#: webapp/models.py:174 +#: webapp/models.py:192 msgid "Kaehmy application: {}" msgstr "Kaehmy: {}" -#: webapp/models.py:209 +#: webapp/models.py:227 msgid "Role" msgstr "Rooli" -#: webapp/models.py:211 +#: webapp/models.py:229 msgid "Start date" msgstr "Alkupäivämäärä" -#: webapp/models.py:212 +#: webapp/models.py:230 msgid "End date" msgstr "Loppupäivämäärä" -#: webapp/models.py:222 +#: webapp/models.py:240 msgid "Official" msgstr "Toimihenkilö" @@ -695,18 +761,10 @@ msgstr "Yhteystiedot" msgid "Event calendar" msgstr "Tapahtumakalenteri" -#: webapp/templates/freshmen.html:7 webapp/templates/navigation.html:16 -msgid "Freshmen" -msgstr "Fuksit" - #: webapp/templates/guild.html:7 msgid "Kilta" msgstr "Kilta" -#: webapp/templates/international.html:7 webapp/templates/navigation.html:30 -msgid "International" -msgstr "International" - #: webapp/templates/jobs.html:7 webapp/templates/navigation.html:20 msgid "Jobs" msgstr "Työpaikat" @@ -805,6 +863,9 @@ msgstr "Kaikki haasteet" msgid "Total challenges:" msgstr "Haasteita yhteensä:" +#~ msgid "Invalid value" +#~ msgstr "Epäkelpo arvo" + #~ msgid "Roles" #~ msgstr "Roolit" diff --git a/members/templates/application_form_base.html b/members/templates/application_form_base.html index 5f57e1b..aa0ae3a 100644 --- a/members/templates/application_form_base.html +++ b/members/templates/application_form_base.html @@ -5,7 +5,7 @@ - + Jäsenhakemus diff --git a/webapp/forms.py b/webapp/forms.py index 6ca9737..d5c7067 100644 --- a/webapp/forms.py +++ b/webapp/forms.py @@ -29,7 +29,7 @@ class KaehmyForm_Form(forms.ModelForm): self.fields["custom_roles"].queryset = CustomKaehmyRole.objects.all() self.fields["preset_roles"].widget = forms.widgets.CheckboxSelectMultiple(attrs={'title': _('Preset roles')}) self.fields["preset_roles"].help_text = "" - self.fields["preset_roles"].queryset = PresetKaehmyRole.objects.all() + self.fields["preset_roles"].queryset = PresetKaehmyRole.objects.order_by('category') self.fields["preset_roles"].label = _('Preset roles') def clean_phone_number(self): diff --git a/webapp/migrations/0029_baserole_category.py b/webapp/migrations/0029_baserole_category.py new file mode 100644 index 0000000..39ad05f --- /dev/null +++ b/webapp/migrations/0029_baserole_category.py @@ -0,0 +1,20 @@ +# -*- coding: utf-8 -*- +# Generated by Django 1.11 on 2017-10-16 09:19 +from __future__ import unicode_literals + +from django.db import migrations, models + + +class Migration(migrations.Migration): + + dependencies = [ + ('webapp', '0028_telegramchannel'), + ] + + operations = [ + migrations.AddField( + model_name='baserole', + name='category', + field=models.CharField(choices=[('corporate', 'Corporate affairs'), ('freshman', 'Freshmen'), ('international', 'International'), ('external', 'External affairs'), ('media', 'Media'), ('tech', 'Technology'), ('wellbeing', 'Wellbeing'), ('elepaja', 'Elepaja'), ('ceremonies', 'Ceremonies'), ('culture', 'Culture'), ('studies', 'Studies'), ('sosso', 'Sössö magazine'), ('alumni', 'Alumni relations'), ('others', 'Others')], default='others', max_length=255, verbose_name='Category'), + ), + ] diff --git a/webapp/models.py b/webapp/models.py index b1a3ae1..af01aab 100644 --- a/webapp/models.py +++ b/webapp/models.py @@ -90,8 +90,26 @@ class Registration(models.Model): class BaseRole(models.Model): """Base model for occupations/roles.""" + CATEGORIES = ( + ('corporate', _('Corporate affairs')), + ('freshman', _('Freshmen')), + ('international', _('International')), + ('external', _('External affairs')), + ('media', _('Media')), + ('tech', _('Technology')), + ('wellbeing', _('Wellbeing')), + ('elepaja', _('Elepaja')), + ('ceremonies', _('Ceremonies')), + ('culture', _('Culture')), + ('studies', _('Studies')), + ('sosso', _('Sössö magazine')), + ('alumni', _('Alumni relations')), + ('others', _('Others')), + ) + name = models.CharField(_('Name'), max_length=255) is_board = models.BooleanField(_('Board member')) + category = models.CharField(_('Category'), choices=CATEGORIES, default='others', max_length=255) def __str__(self): n = self.name.capitalize()