Skip to content

Commit 38c153c

Browse files
committed
Remove usage of distinct(field) in meeting/helpers.py, Django
complains that it doesn't work on MySQL and the two uses appear superfluous anyway since they only return the field being distincted - Legacy-Id: 7018
1 parent 2cc2323 commit 38c153c

1 file changed

Lines changed: 2 additions & 4 deletions

File tree

ietf/meeting/helpers.py

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -62,8 +62,7 @@ def get_areas():
6262
def get_area_list_from_sessions(scheduledsessions, num):
6363
return scheduledsessions.filter(timeslot__type = 'Session',
6464
session__group__parent__isnull = False).order_by(
65-
'session__group__parent__acronym').distinct(
66-
'session__group__parent__acronym').values_list(
65+
'session__group__parent__acronym').distinct().values_list(
6766
'session__group__parent__acronym',flat=True)
6867

6968
def build_all_agenda_slices(scheduledsessions, all = False):
@@ -103,8 +102,7 @@ def get_wg_name_list(scheduledsessions):
103102
return scheduledsessions.filter(timeslot__type = 'Session',
104103
session__group__isnull = False,
105104
session__group__parent__isnull = False).order_by(
106-
'session__group__acronym').distinct(
107-
'session__group').values_list(
105+
'session__group__acronym').distinct().values_list(
108106
'session__group__acronym',flat=True)
109107

110108
def get_wg_list(scheduledsessions):

0 commit comments

Comments
 (0)