Package hm :: Package db :: Module state :: Class StateField
[hide private]
[frames] | no frames]

Class StateField

source code


Nested Classes [hide private]

Inherited from django.db.models.fields.Field: __metaclass__

Instance Methods [hide private]
 
db_type(self)
Returns the database column data type for this field, taking into account the DATABASE_ENGINE setting.
source code
 
__init__(self, *args, **kwargs)
x.__init__(...) initializes x; see x.__class__.__doc__ for signature

Inherited from django.db.models.fields.PositiveSmallIntegerField: formfield, get_manipulator_field_objs

Inherited from django.db.models.fields.Field: __cmp__, bind, contribute_to_class, flatten_data, get_attname, get_attname_column, get_cache_name, get_choices, get_choices_default, get_db_prep_lookup, get_db_prep_save, get_default, get_follow, get_internal_type, get_manipulator_field_names, get_manipulator_fields, get_manipulator_new_data, get_validator_unique_lookup_type, has_default, pre_save, prepare_field_objs_and_params, save_form_data, set_attributes_from_name, to_python, validate, validate_full, value_from_object

Inherited from django.db.models.fields.Field (private): _get_choices, _get_val_from_obj

Inherited from object: __delattr__, __getattribute__, __hash__, __new__, __reduce__, __reduce_ex__, __repr__, __setattr__, __str__

Class Variables [hide private]

Inherited from django.db.models.fields.IntegerField: empty_strings_allowed

Inherited from django.db.models.fields.Field: creation_counter

Properties [hide private]
  maxlength

Inherited from django.db.models.fields.Field: choices

Inherited from object: __class__

Method Details [hide private]

db_type(self)

source code 

Returns the database column data type for this field, taking into account the DATABASE_ENGINE setting.

Overrides: django.db.models.fields.Field.db_type
(inherited documentation)

__init__(self, *args, **kwargs)
(Constructor)

 

x.__init__(...) initializes x; see x.__class__.__doc__ for signature

Overrides: django.db.models.fields.PositiveSmallIntegerField.__init__

Property Details [hide private]

maxlength

Get Method:
django.utils.maxlength.get_maxlength(self)
Set Method:
django.utils.maxlength.set_maxlength(self, value)