Skip to content

Commit

Permalink
[chores] Changed default position of group pie chart
Browse files Browse the repository at this point in the history
  • Loading branch information
nemesifier committed May 18, 2022
1 parent 89c8c01 commit bc88271
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion openwisp_controller/config/apps.py
Original file line number Diff line number Diff line change
Expand Up @@ -323,7 +323,7 @@ def register_dashboard_charts(self):
)
if app_settings.GROUP_PIE_CHART:
register_dashboard_chart(
position=13,
position=20,
config={
'name': _('Groups'),
'query_params': {
Expand Down
2 changes: 1 addition & 1 deletion openwisp_controller/config/tests/test_apps.py
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@ def test_system_type_chart_registered(self):
self.assertEqual(query_params['group_by'], 'system')

def test_device_group_chart_registered(self):
chart_config = DASHBOARD_CHARTS.get(13, None)
chart_config = DASHBOARD_CHARTS.get(20, None)
self.assertIsNotNone(chart_config)
self.assertEqual(chart_config['name'], 'Groups')
self.assertIn('labels', chart_config)
Expand Down

0 comments on commit bc88271

Please sign in to comment.