'Returns the registration codes that were generated
via invoice.'

@classmethod
def invoice_generated_registration_codes(cls, course_id):

    return cls.objects.filter(invoice__isnull=False, course_id=course_id)
