def create(self, name, value):
if value is None:<EOL><INDENT>raise ValueError('<STR_LIT>')<EOL><DEDENT>model = Setting.get_model_for_value(value)<EOL>obj = super(SettingQuerySet, model.objects.all()).create(name=name, value=value)<EOL>return obj<EOL>
Creates and returns an object of the appropriate type for ``value``.