diff --git a/backend/app/models/calendar.py b/backend/app/models/calendar.py index 05c000a..fefb946 100644 --- a/backend/app/models/calendar.py +++ b/backend/app/models/calendar.py @@ -21,7 +21,7 @@ class Calendar(db.Model): cascade='all, delete-orphan') shares = db.relationship('CalendarShare', backref='calendar', lazy='dynamic', cascade='all, delete-orphan') - owner = db.relationship('User', foreign_keys=[owner_id]) + # Note: `owner` is auto-created as a backref by User.calendars relationship def to_dict(self): return {