Skip to content

Commit a1e2a78

Browse files
Use modern imports (#4)
* add * add * Update apps.py
1 parent b01fba1 commit a1e2a78

File tree

1 file changed

+4
-10
lines changed

1 file changed

+4
-10
lines changed

django_ltree/apps.py

+4-10
Original file line numberDiff line numberDiff line change
@@ -1,17 +1,11 @@
1-
import importlib
2-
31
from django.apps import AppConfig
42

53

6-
def register_pathfield():
7-
# Register field checks, lookups and functions
8-
importlib.import_module("django_ltree.checks")
9-
importlib.import_module("django_ltree.lookups")
10-
importlib.import_module("django_ltree.functions")
11-
12-
134
class DjangoLtreeConfig(AppConfig):
5+
default_auto_field = "django.db.models.BigAutoField"
146
name = "django_ltree"
157

168
def ready(self):
17-
register_pathfield()
9+
from . import checks as checks
10+
from . import lookups as lookups
11+
from . import functions as functions

0 commit comments

Comments
 (0)