update test

This commit is contained in:
Dries Peeters
2025-10-24 17:08:42 +02:00
parent 398a48ad4b
commit 16b5ac7110
2 changed files with 1 additions and 2 deletions

View File

@@ -21,7 +21,6 @@ class Client(db.Model):
# Relationships
projects = db.relationship('Project', backref='client_obj', lazy='dynamic', cascade='all, delete-orphan')
notes = db.relationship('ClientNote', backref='client', lazy='dynamic', cascade='all, delete-orphan')
def __init__(self, name, description=None, contact_person=None, email=None, phone=None, address=None, default_hourly_rate=None):
self.name = name.strip()

View File

@@ -25,7 +25,7 @@ class ClientNote(db.Model):
# Relationships
author = db.relationship('User', backref='client_notes')
client = db.relationship('Client', backref='notes')
client = db.relationship('Client', backref=db.backref('notes', cascade='all, delete-orphan'))
def __init__(self, content, user_id, client_id, is_important=False):
"""Create a client note.