From 0fd6fff25143e90bbfd71a6070e160e852bb2b4c Mon Sep 17 00:00:00 2001 From: jakeross Date: Thu, 29 Jan 2026 21:26:08 +1100 Subject: [PATCH 1/2] feat: add NotesMixin to Contact model for enhanced note functionality --- db/contact.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/db/contact.py b/db/contact.py index 558724df9..3998f48ba 100644 --- a/db/contact.py +++ b/db/contact.py @@ -20,6 +20,7 @@ from sqlalchemy.orm import relationship, Mapped, mapped_column, declared_attr from sqlalchemy_utils import TSVectorType +from db import NotesMixin from db.base import Base, AutoBaseMixin, ReleaseMixin, lexicon_term if TYPE_CHECKING: @@ -45,7 +46,7 @@ class ThingContactAssociation(Base, AutoBaseMixin): ) -class Contact(Base, AutoBaseMixin, ReleaseMixin): +class Contact(Base, AutoBaseMixin, ReleaseMixin, NotesMixin): name: Mapped[str] = mapped_column(String(100), nullable=True) organization: Mapped[str] = lexicon_term(nullable=True) role: Mapped[str] = lexicon_term(nullable=False) From 9d63f96dfddcd49d7fb36b8826792b24da8e697c Mon Sep 17 00:00:00 2001 From: jakeross Date: Thu, 29 Jan 2026 21:27:52 +1100 Subject: [PATCH 2/2] feat: import NotesMixin from the correct module in contact.py --- db/contact.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/db/contact.py b/db/contact.py index 3998f48ba..656e4d9d4 100644 --- a/db/contact.py +++ b/db/contact.py @@ -20,8 +20,8 @@ from sqlalchemy.orm import relationship, Mapped, mapped_column, declared_attr from sqlalchemy_utils import TSVectorType -from db import NotesMixin from db.base import Base, AutoBaseMixin, ReleaseMixin, lexicon_term +from db.notes import NotesMixin if TYPE_CHECKING: from db.field import FieldEventParticipant, FieldEvent