This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
""" | |
Do `import lazy_model_loader` as early as possible in your application's | |
lifecycle, then: | |
from lazymodels.my_app import MyModel | |
def some_func(): | |
return MyModel.objects.filter(name='Foo') | |
We're hacking the Python import system to enable you to import lazy references |