@classmethod
def next_number(cls, period):
    """Compute the number for the next newsletter."""
    try:
        number = cls._default_manager.filter(period=period).values('number'
            ).order_by('-number')[0]['number'] + 1
    except IndexError:
        number = 1
    return number
