I know this is how we're doing it in myprofile, but it needs to be refactored to getattr(myprofile.models, module)