Clean up the code for pull request

This commit is contained in:
Norman Jäckel 2012-09-14 23:53:59 +02:00
parent 269b093b28
commit 0db8af15b7
2 changed files with 0 additions and 6 deletions

View File

@ -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()

View File

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