From 0db8af15b79ad2e9cda5ea4c03405a2d01c3b35b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Norman=20J=C3=A4ckel?= Date: Fri, 14 Sep 2012 23:53:59 +0200 Subject: [PATCH] Clean up the code for pull request --- openslides/application/views.py | 2 -- openslides/participant/models.py | 4 ---- 2 files changed, 6 deletions(-) diff --git a/openslides/application/views.py b/openslides/application/views.py index ba073bb51..87eca0f1a 100644 --- a/openslides/application/views.py +++ b/openslides/application/views.py @@ -102,8 +102,6 @@ def overview(request): if sort.startswith('aversion_'): # limit result to last version of an application query = query.filter(aversion__id__in=[x.last_version.id for x in Application.objects.all()]) - else: - pass if 'reverse' in sortfilter: query = query.reverse() diff --git a/openslides/participant/models.py b/openslides/participant/models.py index 1eef00093..a94fcdb41 100644 --- a/openslides/participant/models.py +++ b/openslides/participant/models.py @@ -162,10 +162,6 @@ class UsersAndGroupsToPersons(object): for group in self.groups: yield group - # Are the following two lines superfluous? They only return Users not Groups. - def __getitem__(self, key): - return User.objects.get(pk=key) - @receiver(receive_persons, dispatch_uid="participant") def receive_persons(sender, **kwargs):