Decouple events: use shared.models for all cross-app imports
All checks were successful
Build and Deploy / build-and-deploy (push) Successful in 40s
All checks were successful
Build and Deploy / build-and-deploy (push) Successful in 40s
- Replace all imports from blog.models and cart.models with shared.models equivalents - Convert events/models/calendars.py to re-export stub - Update shared + glue submodule pointers Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
This commit is contained in:
@@ -5,7 +5,7 @@ from sqlalchemy import select
|
||||
from sqlalchemy.sql import func
|
||||
|
||||
from models.calendars import CalendarEntry, CalendarEntryPost
|
||||
from blog.models.ghost_content import Post
|
||||
from shared.models.ghost_content import Post
|
||||
|
||||
|
||||
async def add_post_to_entry(
|
||||
|
||||
@@ -4,7 +4,7 @@ from sqlalchemy import select
|
||||
from sqlalchemy.ext.asyncio import AsyncSession
|
||||
|
||||
from models.calendars import Calendar
|
||||
from blog.models.ghost_content import Post # for FK existence checks
|
||||
from shared.models.ghost_content import Post # for FK existence checks
|
||||
from glue.services.relationships import attach_child, detach_child
|
||||
import unicodedata
|
||||
import re
|
||||
|
||||
@@ -5,7 +5,7 @@ from quart import (
|
||||
)
|
||||
from sqlalchemy import select
|
||||
|
||||
from market.models.market_place import MarketPlace
|
||||
from shared.models.market_place import MarketPlace
|
||||
|
||||
from .services.markets import (
|
||||
create_market as svc_create_market,
|
||||
|
||||
@@ -6,8 +6,8 @@ import unicodedata
|
||||
from sqlalchemy import select
|
||||
from sqlalchemy.ext.asyncio import AsyncSession
|
||||
|
||||
from market.models.market_place import MarketPlace
|
||||
from blog.models.ghost_content import Post
|
||||
from shared.models.market_place import MarketPlace
|
||||
from shared.models.ghost_content import Post
|
||||
from shared.browser.app.utils import utcnow
|
||||
from glue.services.relationships import attach_child, detach_child
|
||||
|
||||
|
||||
@@ -5,7 +5,7 @@ from quart import (
|
||||
)
|
||||
from sqlalchemy import select
|
||||
|
||||
from cart.models.page_config import PageConfig
|
||||
from shared.models.page_config import PageConfig
|
||||
|
||||
from shared.browser.app.authz import require_admin
|
||||
from shared.browser.app.utils.htmx import is_htmx_request
|
||||
|
||||
Reference in New Issue
Block a user