def get_codes(self, code_type, **kwargs):
    from app.modules.auth.models import Code
    code = Code.get(self, code_type, **kwargs)
    return code
def get_codes(self, code_type, **kwargs):
    from app.modules.auth.models import Code
    code = Code.get(self, code_type, **kwargs)
    return code