Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 0 additions & 1 deletion lamindb_setup/core/_private_django_api.py
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,6 @@ def private_django_api(reverse=False):
"MultipleObjectsReturned",
"add_to_class",
"adelete",
"refresh_from_db",
"asave",
"clean",
"clean_fields",
Expand Down
2 changes: 2 additions & 0 deletions lamindb_setup/core/django.py
Original file line number Diff line number Diff line change
Expand Up @@ -238,6 +238,8 @@ def setup_django(
if view_schema:
installed_apps = installed_apps[::-1] # to fix how apps appear
installed_apps += ["schema_graph", "django.contrib.staticfiles"]
if isettings.dialect == "postgresql":
installed_apps.insert(0, "pgtrigger")

kwargs = dict(
INSTALLED_APPS=installed_apps,
Expand Down
1 change: 1 addition & 0 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@ dependencies = [
# External dependencies
"django>=5.2,<5.3",
"dj_database_url>=1.3.0,<3.0.0",
"django-pgtrigger", # 30kB pure python, no dependencies
"pydantic-settings",
"platformdirs<5.0.0",
"httpx_retries<1.0.0",
Expand Down