mirror of
https://github.com/DRYTRIX/TimeTracker.git
synced 2026-01-06 03:30:25 -06:00
update test
This commit is contained in:
@@ -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()
|
||||
|
||||
@@ -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.
|
||||
|
||||
Reference in New Issue
Block a user