Commit 93b0cdb8 authored by Sébastiaan Versteeg's avatar Sébastiaan Versteeg
Browse files

Merge branch '514-explain-warn-about-committeememberships-in-admin' into 'master'

Explain/Warn about committeememberships in admin

See merge request !630
parents b865c015 0744e2a1
from django.contrib import admin
from django.contrib import admin, messages
from django.contrib.auth.models import Permission
from django.forms import BaseInlineFormSet, ModelForm
from activemembers.forms import CommitteeMembershipForm
from django.utils.translation import ugettext_lazy as _
from utils.translation import TranslatedModelAdmin
from . import models
......@@ -92,6 +93,13 @@ class CommitteeMembershipAdmin(TranslatedModelAdmin):
search_fields = ('member__first_name', 'member__last_name',
def changelist_view(self, request, extra_context=None):
self.message_user(request, _('Do not edit existing memberships if the '
'chair of a committee has changed, add a '
'new committeemembership instead.'),
return super().changelist_view(request, extra_context)
class MentorshipAdmin(admin.ModelAdmin):
......@@ -7,8 +7,8 @@ msgid ""
msgstr ""
"Project-Id-Version: \n"
"Report-Msgid-Bugs-To: \n"
"POT-Creation-Date: 2017-09-25 15:55+0200\n"
"PO-Revision-Date: 2017-09-25 15:55+0200\n"
"POT-Creation-Date: 2017-12-06 21:35+0100\n"
"PO-Revision-Date: 2017-12-06 21:37+0100\n"
"Last-Translator: Sébastiaan Versteeg <>\n"
"Language-Team: \n"
"Language: nl\n"
......@@ -16,7 +16,15 @@ msgstr ""
"Content-Type: text/plain; charset=UTF-8\n"
"Content-Transfer-Encoding: 8bit\n"
"Plural-Forms: nplurals=2; plural=(n != 1);\n"
"X-Generator: Poedit 2.0.3\n"
"X-Generator: Poedit 2.0.4\n"
msgid ""
"Do not edit existing memberships if the chair of a committee has changed, "
"add a new committeemembership instead."
msgstr ""
"Pas geen bestaande lidmaatschappen aan als de voorzitter van een commissie "
"is veranderd. Voeg in de plaats daarvan een nieuw commissielidmaatschap toe."
msgid "Committee name"
......@@ -72,13 +80,13 @@ msgstr "Is dit een bestuur"
msgid "Access the board wiki"
msgstr ""
msgstr "Toegang tot bestuurswiki"
msgid "A board already exists for those years"
msgstr "Er bestaat al een bestuur voor die jaren"
msgid "Member"
msgstr "Lid"
......@@ -120,43 +128,43 @@ msgstr "rol"
msgid "The role of this member"
msgstr "De rol van dit lid binnen de commissie"
msgid "End date can't be before start date"
msgstr "De einddatum kan niet voor de startdatum liggen"
msgid "End date can't be in the future"
msgstr "De einddatum kan niet in de toekomst liggen"
msgid "Start date can't be before committee start date"
msgstr "De begindatum kan niet voor de begindatum van de commissie liggen"
msgid "Start date can't be after committee end date"
msgstr "De begindatum kan niet na de einddatum van de commissie liggen"
msgid "End date cannot be set for boards"
msgstr "Voor besturen kan geen einddatum worden opgegeven"
msgid "There already is a chair for this time period"
msgstr "Er is al een voorzitter voor deze periode"
msgid "This member is already in the committee for this period"
msgstr "Deze persoon is al lid van deze commissie in de aangegeven periode"
msgid "committee membership"
msgstr "commissielidmaatschap"
msgid "committee memberships"
msgstr "commissielidmaatschappen"
#, python-brace-format
msgid "{name} mentor in {year}"
msgstr "{name} mentor in {year}"
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment