mirror of
https://github.com/DRYTRIX/TimeTracker.git
synced 2026-01-25 05:58:50 -06:00
- Fix incorrect relationship name: Comment.user -> Comment.author The Comment model uses 'author' relationship, not 'user' - Fix eager loading of dynamic relationships Remove invalid eager loading attempts for Task.activities and Task.time_entries, which are dynamic relationships (lazy='dynamic') and cannot be eager loaded with joinedload() - Query dynamic relationships correctly Update task view route to properly query time_entries and activities using their dynamic relationship query objects, with proper eager loading of nested relationships (TimeEntry.user, TaskActivity.user) to prevent N+1 queries Fixes issue where task detail view returned HTTP 500 error after creating a new task.