Clean up the code for pull request
This commit is contained in:
parent
269b093b28
commit
0db8af15b7
@ -102,8 +102,6 @@ def overview(request):
|
|||||||
if sort.startswith('aversion_'):
|
if sort.startswith('aversion_'):
|
||||||
# limit result to last version of an application
|
# limit result to last version of an application
|
||||||
query = query.filter(aversion__id__in=[x.last_version.id for x in Application.objects.all()])
|
query = query.filter(aversion__id__in=[x.last_version.id for x in Application.objects.all()])
|
||||||
else:
|
|
||||||
pass
|
|
||||||
|
|
||||||
if 'reverse' in sortfilter:
|
if 'reverse' in sortfilter:
|
||||||
query = query.reverse()
|
query = query.reverse()
|
||||||
|
@ -162,10 +162,6 @@ class UsersAndGroupsToPersons(object):
|
|||||||
for group in self.groups:
|
for group in self.groups:
|
||||||
yield group
|
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")
|
@receiver(receive_persons, dispatch_uid="participant")
|
||||||
def receive_persons(sender, **kwargs):
|
def receive_persons(sender, **kwargs):
|
||||||
|
Loading…
Reference in New Issue
Block a user