Currently, under the Query Builder sidebar item we have 2 options: Basic Query Builder and Advanced Query Builder. The Basic Query Builder is soon to be deprecated (not sure when), but before that happens, we have to drive up the usage of it's replacement. Simply asking people to use the Advanced QB hasn't yielded results, so we're going to force the choice.
To not make things difficult for our users, we're going to need to give them the option to choose a default QB i.e. a remember my choice kind of thing.
Currently, under the Query Builder sidebar item we have 2 options: Basic Query Builder and Advanced Query Builder. The Basic Query Builder is soon to be deprecated (not sure when), but before that happens, we have to drive up the usage of it's replacement. Simply asking people to use the Advanced QB hasn't yielded results, so we're going to force the choice.
BasicorAdvancedwith the Advanced selected by default.To not make things difficult for our users, we're going to need to give them the option to choose a default QB i.e. a
remember my choicekind of thing.preferenceapp & in its models.py file, add aPreferencemodel that inherits fromBaseEntitypreferencesto thePreferencemodel, aJSONField- give it the default value (from a variable){"queryBuilder": "advanced"}globalto thePreferencemodel - a boolean field - give it a default value False - this naturally separates global preferences from user preferences. Make sure that in the Django admin, we can filter Preferences by this global field{}) - return object in format{ global: {}, user: {} }Remember my choice- when checked, update user preferences with the selected option i.ebasicoradvanced