Skip to content

Commit a9bf36f

Browse files
authored
Merge pull request #150 from eviltwin/update_appconfig
update AppConfig for Django 4.1
2 parents 8c325c0 + 55a7385 commit a9bf36f

File tree

2 files changed

+3
-2
lines changed

2 files changed

+3
-2
lines changed

rules/__init__.py

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -22,5 +22,3 @@
2222
)
2323

2424
VERSION = (3, 0, 0, "final", 1)
25-
26-
default_app_config = "rules.apps.RulesConfig"

rules/apps.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,9 +3,12 @@
33

44
class RulesConfig(AppConfig):
55
name = "rules"
6+
default = True
67

78

89
class AutodiscoverRulesConfig(RulesConfig):
10+
default = False
11+
912
def ready(self):
1013
from django.utils.module_loading import autodiscover_modules
1114

0 commit comments

Comments
 (0)