Subcategory.createInstance("category.supplies", pet, user);
Subcategory.createInstance("category.veterinarian", pet, user);
}
protected Dashboard createDashBoDashboard() {
Dashboard dashboard = new Dashboard();
dashboard.setColumns(3);
dashboard.persist();
Widget widget = Widget.createInstance("accounts.favorites.title", 1, 1, "/financial/accounts/favorites", null);
dashboard.addWidget(widget);
widget.persist();
widget = Widget.createInstance("widgets.remainder.title", 1, 2, "/financial/widgets/remainder/", "30");
dashboard.addWidget(widget);
widget.persist();
widget = Widget.createInstance("widgets.networth.title", 1, 3, "/financial/widgets/networth/", "5");
dashboard.addWidget(widget);
widget.persist();
widget = Widget.createInstance("budget.widget.title", 2, 1, "/financial/budget/graph/", "expanded");
dashboard.addWidget(widget);
widget.persist();
widget = Widget.createInstance("accounts.expensesbycategory.dashtitle", 2, 2, "/financial/widgets/expenses_by_category/", "last_quarter");
dashboard.addWidget(widget);
widget.persist();
widget = Widget.createInstance("accounts.expensesovertime.title", 2, 3, "/financial/widgets/expenses_over_time/", "5");
dashboard.addWidget(widget);
widget.persist();
widget = Widget.createInstance("accounts.incomevsexpenses.title", 3, 1, "/financial/widgets/income_vs_expenses/", "previous_month");
dashboard.addWidget(widget);
widget.persist();
widget = Widget.createInstance("widgets.incomevsexpensesovertime.title", 3, 2, "/financial/widgets/income_vs_expenses_over_time/", "11");
dashboard.addWidget(widget);
widget.persist();
dashboard.merge();
return dashboard;
}