def __init__(<EOL>self, name, default, category=None, field=None, verbose_name=None, help_text='<STR_LIT>', static=True,<EOL>readonly=False):
self.name = name<EOL>self.category = category<EOL>self.default = default<EOL>self.static = static<EOL>self.help_text = help_text<EOL>if static:<EOL><INDENT>readonly = True<EOL><DEDENT>self.readonly = readonly<EOL>if verbose_name is None:<EOL><INDENT>verbose_name = name.replace('<STR_LIT:_>', '<STR_LIT:U+0020>').capitalize()<EOL><DEDENT>self.verbose_name = verbose_name<EOL>if field is None:<EOL><INDENT>self.field = get_field_for_proxy(self)<EOL><DEDENT>else:<EOL><INDENT>self.field = field<EOL>update_field_from_proxy(self.field, self)<EOL><DEDENT>
:param str|unicode name: Preference name.

:param default: Default (initial) value.

:param str|unicode category: Category name the preference belongs to.

:param Field field: Django model field to represent this preference.

:param str|unicode verbose_name: Field verbose name.

:param str|unicode help_text: Field help text.

:param bool static: Leave this preference static (do not store in DB).

:param bool readonly: Make this field read only.