-
Notifications
You must be signed in to change notification settings - Fork 15
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #24 from baseplate-admin/patch-1
Modernize imports
- Loading branch information
Showing
1 changed file
with
4 additions
and
10 deletions.
There are no files selected for viewing
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,17 +1,11 @@ | ||
import importlib | ||
|
||
from django.apps import AppConfig | ||
|
||
|
||
def register_pathfield(): | ||
# Register field checks, lookups and functions | ||
importlib.import_module("django_ltree.checks") | ||
importlib.import_module("django_ltree.lookups") | ||
importlib.import_module("django_ltree.functions") | ||
|
||
|
||
class DjangoLtreeConfig(AppConfig): | ||
default_auto_field = "django.db.models.BigAutoField" | ||
name = "django_ltree" | ||
|
||
def ready(self): | ||
register_pathfield() | ||
from . import checks as checks | ||
from . import lookups as lookups | ||
from . import functions as functions |