diff --git a/openslides/assignment/templates/assignment/view.html b/openslides/assignment/templates/assignment/view.html
index 8cd2141e8..d381f6857 100644
--- a/openslides/assignment/templates/assignment/view.html
+++ b/openslides/assignment/templates/assignment/view.html
@@ -121,7 +121,7 @@
{% endif %}
{% endif %}
-{% if perms.assignment.can_manage_assignments and blocked_candidates and assignment.status != "fin" %}
+{% if perms.assignment.can_manage_assignment and blocked_candidates and assignment.status != "fin" %}
{% trans "Blocked Candidates" %}
{% for person in blocked_candidates %}
diff --git a/tests/assignment/test_views.py b/tests/assignment/test_views.py
index cad0d0f7e..7d3285ea5 100644
--- a/tests/assignment/test_views.py
+++ b/tests/assignment/test_views.py
@@ -64,3 +64,29 @@ class TestAssignmentPollDelete(AssignmentViewTestCase):
def test_post(self):
response = self.admin_client.post('/assignment/poll/1/del/', {'yes': 1})
self.assertRedirects(response, '/assignment/1/')
+
+
+class TestAssignmentDetailView(AssignmentViewTestCase):
+ def test_blocked_candidates_view(self):
+ """
+ Tests that a delegate runs for a vote and then withdraws himself.
+ """
+ response = self.staff_client.get('/assignment/1/')
+ self.assertContains(response, 'No candidates available.')
+ self.assertNotContains(response, 'Blocked Candidates')
+
+ response = self.delegate_client.get('/assignment/1/run/')
+ self.assertTrue(self.assignment1.is_candidate(self.delegate))
+ self.assertFalse(self.assignment1.is_blocked(self.delegate))
+
+ response = self.staff_client.get('/assignment/1/')
+ self.assertNotContains(response, 'No candidates available.')
+ self.assertNotContains(response, 'Blocked Candidates')
+
+ response = self.delegate_client.get('/assignment/1/delrun/')
+ self.assertFalse(self.assignment1.is_candidate(self.delegate))
+ self.assertTrue(self.assignment1.is_blocked(self.delegate))
+
+ response = self.staff_client.get('/assignment/1/')
+ self.assertContains(response, 'No candidates available.')
+ self.assertContains(response, 'Blocked Candidates')