'if matches returns the most recent entry in the table filtered by enrollment else returns None,'

@classmethod
def get_manual_enrollment(cls, enrollment):

    try:
        manual_enrollment = cls.objects.filter(enrollment=enrollment).latest('time_stamp')
    except cls.DoesNotExist:
        manual_enrollment = None
    return manual_enrollment
