rcpch / national-paediatric-diabetes-audit

A django application to audit the care of children and young people with diabetes in England and Wales.
0 stars 1 forks source link

Fix superuser view preference #355

Closed mbarton closed 2 weeks ago

mbarton commented 2 weeks ago

Fix the default view preference for newly created superusers. It now is correctly set to national where before it ended up being the obselete organisation level (0).

This means that you now see the data quality report after uploading in a brand new fresh instance. Before you had to juggle the switcher to get it to show up.

I've refactored the create_superuser function on the user manager to take no additional arguments, which means we can then simplify the calling code to no longer use **extrafields and hopefully make bugs like this less likely in the future

mbarton commented 2 weeks ago

Seen on STAGING (merged by @mbarton 6 minutes and 29 seconds ago) Please check your changes!