This file contains hidden or 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.core.management import BaseCommand | |
| from django.db import connection, models | |
| from django.db.migrations import Migration | |
| from django.db.migrations.autodetector import MigrationAutodetector | |
| from django.db.migrations.graph import MigrationGraph | |
| from django.db.migrations.questioner import InteractiveMigrationQuestioner | |
| from django.db.migrations.state import ModelState, ProjectState | |
| class PatchedModelState(ModelState): |
This file contains hidden or 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
| import functools | |
| import logging | |
| from django.core.cache import DEFAULT_CACHE_ALIAS, caches | |
| logger = logging.getLogger(__name__) | |
| class CachedFunction: | |
| """ | |
| The CachedFunction is a proxy object that implements cache-wrapper logic around |
OlderNewer