Fixed another place where updated logic is needed to get the current

meeting when we have multiple future meetings.  Fixes issue #2371.
 - Legacy-Id: 14120
This commit is contained in:
Henrik Levkowetz 2017-09-15 17:49:22 +00:00
parent bc054b8cb2
commit 1e7b906535

View file

@ -141,7 +141,7 @@ class Meeting(models.Model):
@classmethod
def get_current_meeting(cls, type="ietf"):
return cls.objects.all().filter(type=type).order_by('-date').first()
return cls.objects.filter(type=type, date__gte=datetime.datetime.today()-datetime.timedelta(days=7) ).order_by('date').first()
@classmethod
def get_first_cut_off(cls):