Created
October 8, 2019 03:27
-
-
Save sergeybe/ca787f9e3bb3c914a0528236e3258681 to your computer and use it in GitHub Desktop.
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
from django.apps import apps | |
for _class in apps.get_models(): | |
globals()[_class.__name__] = _class |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment