We've had cases where we want to check in code whether an app setting has been set or not. While this is in most cases not very relevant as "not set" and "returning default value" are the same thing from the API's perspective, it could be useful in e.g. cases where an app sets a PROJECT_USER setting and wants to make sure it doesn't do it multiple times redundantly.
This can be done by importing the AppSetting model and doing a direct query on that. But since we have this nice API anyway and want to discourage direct model access in this case, why not add a simple is_set() method to the API.
We've had cases where we want to check in code whether an app setting has been set or not. While this is in most cases not very relevant as "not set" and "returning default value" are the same thing from the API's perspective, it could be useful in e.g. cases where an app sets a
PROJECT_USER
setting and wants to make sure it doesn't do it multiple times redundantly.This can be done by importing the
AppSetting
model and doing a direct query on that. But since we have this nice API anyway and want to discourage direct model access in this case, why not add a simpleis_set()
method to the API.Not urgent though, so tagging this for v1.1.