Fix #707 -- Setup automated spell-checking for translations (#896)

This will:
  * set up potypo
  * add wordlists, edgecases and phrases
  * fix english typos across the codebase
  * fix german typos and translation
This commit is contained in:
Jakob Schnell
2018-05-27 11:59:10 +02:00
committed by Raphael Michel
parent 4d249553bf
commit 1689925508
19 changed files with 415 additions and 19 deletions

View File

@@ -474,7 +474,7 @@ class TeamMemberView(OrganizerDetailViewMixin, OrganizerPermissionRequiredMixin,
can_change_teams=True, members__isnull=False
).exists()
if not other_admin_teams and self.object.can_change_teams and self.object.members.count() == 1:
messages.error(self.request, _('You cannot remove the last member from this team as noone would '
messages.error(self.request, _('You cannot remove the last member from this team as no one would '
'be left with the permission to change teams.'))
return redirect(self.get_success_url())
else: