From 73601d17f82c4c110d55fb60fe7371a21325d0ed Mon Sep 17 00:00:00 2001 From: Leopoldadmin Date: Sat, 4 Jul 2026 01:21:20 +0000 Subject: [PATCH] =?UTF-8?q?B1:=20Fix=20duplicate=20=5F=5Fall=5F=5F=20in=20?= =?UTF-8?q?models/=5F=5Finit=5F=5F.py=20=E2=80=94=20merged=20into=20single?= =?UTF-8?q?=20block=20with=20all=20models,=20no=20duplicates?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- app/models/__init__.py | 41 +++++++++-------------------------------- 1 file changed, 9 insertions(+), 32 deletions(-) diff --git a/app/models/__init__.py b/app/models/__init__.py index efb899e..46f61a9 100644 --- a/app/models/__init__.py +++ b/app/models/__init__.py @@ -1,48 +1,21 @@ """SQLAlchemy models for LeoCRM.""" +from app.models.ai_conversation import AIConversation, AIMessage +from app.models.attachment import Attachment from app.models.audit import AuditLog, DeletionLog from app.models.auth import ApiToken, PasswordResetToken from app.models.company import Company from app.models.contact import CompanyContact, Contact from app.models.currency import Currency -from app.models.tax import TaxRate -from app.models.sequence import Sequence -from app.models.system_settings import SystemSettings -from app.models.attachment import Attachment from app.models.notification import Notification from app.models.plugin import Plugin, PluginMigration from app.models.role import Role +from app.models.sequence import Sequence from app.models.session import Session +from app.models.system_settings import SystemSettings +from app.models.tax import TaxRate from app.models.tenant import Tenant from app.models.user import User, UserTenant - -__all__ = [ - "Tenant", - "User", - "UserTenant", - "Role", - "Session", - "AuditLog", - "DeletionLog", - "Notification", - "PasswordResetToken", - "ApiToken", - "Company", - "Contact", - "CompanyContact", - "Currency", - "TaxRate", - "Sequence", - "SystemSettings", - "Attachment", - "Attachment", - "SystemSettings", - "Sequence", - "TaxRate", - "Plugin", - "PluginMigration", -] -from app.models.ai_conversation import AIConversation, AIMessage from app.models.workflow import Workflow, WorkflowInstance, WorkflowStepHistory __all__ = [ @@ -60,6 +33,10 @@ __all__ = [ "Contact", "CompanyContact", "Currency", + "TaxRate", + "Sequence", + "SystemSettings", + "Attachment", "Plugin", "PluginMigration", "AIConversation",