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):