mirror of
https://github.com/Hopiu/django-cachalot.git
synced 2026-05-10 21:53:12 +00:00
13 lines
247 B
Python
13 lines
247 B
Python
from django.apps import AppConfig
|
|
|
|
from .monkey_patch import patch
|
|
|
|
|
|
class CachalotConfig(AppConfig):
|
|
name = 'cachalot'
|
|
patched = False
|
|
|
|
def ready(self):
|
|
if not self.patched:
|
|
patch()
|
|
self.patched = True
|