Skip to content
This repository has been archived by the owner on Apr 25, 2023. It is now read-only.

Commit

Permalink
fix bug in committee meetings admin which prevented accessing it
Browse files Browse the repository at this point in the history
  • Loading branch information
OriHoch committed Apr 27, 2017
1 parent f9b9723 commit 9f04aaf
Showing 1 changed file with 1 addition and 5 deletions.
6 changes: 1 addition & 5 deletions committees/admin.py
Expand Up @@ -87,11 +87,7 @@ def committee_type(self, obj):
return obj.committee.type

def protocol_parts(self, obj):
return obj.num_parts

def get_queryset(self, request):
qs = super(CommitteeMeetingAdmin, self).get_queryset(request)
return qs.annotate(num_parts=Count('parts'))
return obj.parts.all().count()

def redownload_and_reparse_protocol(self, request, qs):
mks, mk_names = get_all_mk_names()
Expand Down

0 comments on commit 9f04aaf

Please sign in to comment.