Skip to content

Commit

Permalink
Merge pull request #24 from baseplate-admin/patch-1
Browse files Browse the repository at this point in the history
Modernize imports
  • Loading branch information
mariocesar authored Dec 19, 2024
2 parents 0501fe5 + c2e3a3e commit c5241ab
Showing 1 changed file with 4 additions and 10 deletions.
14 changes: 4 additions & 10 deletions django_ltree/apps.py
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

0 comments on commit c5241ab

Please sign in to comment.