Skip to content

Commit dc60642

Browse files
committed
tweak
1 parent 2fa0bff commit dc60642

File tree

1 file changed

+11
-0
lines changed

1 file changed

+11
-0
lines changed

cacheops/__init__.py

+11
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,19 @@
11
__version__ = '7.1'
22
VERSION = tuple(map(int, __version__.split('.')))
33

4+
from django.apps import AppConfig
45
from .simple import * # noqa
56
from .query import * # noqa
67
from .invalidation import * # noqa
78
from .reaper import * # noqa
89
from .templatetags.cacheops import * # noqa
10+
from .transaction import * # noqa
11+
12+
class CacheopsConfig(AppConfig):
13+
name = 'cacheops'
14+
15+
def ready(self):
16+
install_cacheops()
17+
install_cacheops_transaction_support()
18+
19+
default_app_config = 'cacheops.CacheopsConfig'

0 commit comments

Comments
 (0)