def clear(self):
        super(GroupedRequirements, self).clear()
        self.create_default_groups()
def _nearest_weekday(weekday):
    return datetime.now() + timedelta(days=(weekday - datetime.now().weekday()) % 7)