diff --git a/frontend/app/models/project-statistic.js b/frontend/app/models/project-statistic.js index 578b7bc83..12a607a84 100644 --- a/frontend/app/models/project-statistic.js +++ b/frontend/app/models/project-statistic.js @@ -5,5 +5,5 @@ export default class ProjectStatistics extends Model { @attr("django-duration") estimatedTime; @attr("django-duration") duration; @attr("django-duration") totalRemainingEffort; - @belongsTo("customer") customer; + @belongsTo("customer", { async: true, inverse: null }) customer; } diff --git a/frontend/app/models/report-intersection.js b/frontend/app/models/report-intersection.js index 8a6ce4202..8b3f2eb5c 100644 --- a/frontend/app/models/report-intersection.js +++ b/frontend/app/models/report-intersection.js @@ -8,8 +8,8 @@ export default class ReportIntersection extends Model { @attr("boolean", { allowNull: true, defaultValue: null }) billed; @attr("boolean", { allowNull: true, defaultValue: null }) verified; - @belongsTo("customer") customer; - @belongsTo("project") project; - @belongsTo("task") task; - @belongsTo("user") user; + @belongsTo("customer", { async: true, inverse: null }) customer; + @belongsTo("project", { async: true, inverse: null }) project; + @belongsTo("task", { async: true, inverse: null }) task; + @belongsTo("user", { async: true, inverse: null }) user; }