]> git.parisson.com Git - teleforma.git/commitdiff
add status=3 to conference filter
authorGuillaume Pellerin <guillaume.pellerin@ircam.fr>
Mon, 23 Jan 2023 17:00:13 +0000 (18:00 +0100)
committerGuillaume Pellerin <guillaume.pellerin@ircam.fr>
Mon, 23 Jan 2023 17:00:13 +0000 (18:00 +0100)
teleforma/views/core.py

index 2b5b68d3080ee88cf77726f549a043d967d5c6a9..564f2d3bcb5999bc8756b35bc91beedf0f5820c8 100644 (file)
@@ -142,12 +142,19 @@ def get_course_conferences(period, course, course_type):
     already_added = set()
     # get conference publications
     publications = ConferencePublication.objects.filter(
-        period=period, conference__course=course, conference__course_type=course_type).distinct()
+        period=period,
+        conference__course=course,
+        conference__course_type=course_type,
+        status=3).distinct()
     for publication in publications:
         conferences.append(publication.conference)
         already_added.add(publication.conference.id)
 
-    for conference in Conference.objects.filter(period=period, course=course, course_type=course_type):
+    cc = Conference.objects.filter(period=period,
+        course=course,
+        course_type=course_type,
+        status=3)
+    for conference in cc:
         # do not include conferences with publication rules
         if conference.id not in already_added:
             conferences.append(conference)