Package expedient :: Package common :: Package utils :: Module modelfields :: Class LimitedDateTimeField
[hide private]
[frames] | no frames]

Class LimitedDateTimeField

source code


A date time field that is limited between a min and max.

Nested Classes [hide private]

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

Instance Methods [hide private]
 
__init__(self, max_date=None, min_date=None, *args, **kwargs)
x.__init__(...) initializes x; see x.__class__.__doc__ for signature
source code
 
validate(self, value, model_instance)
Validates value and throws ValidationError.
source code
 
formfield(self, **kwargs)
Returns a django.forms.Field instance for this database Field.
source code
 
db_type(*args, **kwargs)
 
get_db_prep_lookup(*args, **kwargs)
 
get_db_prep_save(*args, **kwargs)
 
get_db_prep_value(*args, **kwargs)

Inherited from django.db.models.fields.DateTimeField: get_internal_type, get_prep_value, pre_save, to_python, value_to_string

Inherited from django.db.models.fields.DateField: contribute_to_class, get_prep_lookup

Inherited from django.db.models.fields.Field: __cmp__, __deepcopy__, bind, clean, get_attname, get_attname_column, get_cache_name, get_choices, get_choices_default, get_default, get_flatchoices, get_validator_unique_lookup_type, has_default, run_validators, save_form_data, set_attributes_from_name, value_from_object

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

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

Class Variables [hide private]
  description = 'Date and time'

Inherited from django.db.models.fields.DateTimeField: default_error_messages

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

Inherited from django.db.models.fields.Field: auto_creation_counter, creation_counter, default_validators

Properties [hide private]

Inherited from django.db.models.fields.Field: choices, flatchoices, unique

Inherited from object: __class__

Method Details [hide private]

__init__(self, max_date=None, min_date=None, *args, **kwargs)
(Constructor)

source code 

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

Overrides: object.__init__
(inherited documentation)

validate(self, value, model_instance)

source code 

Validates value and throws ValidationError. Subclasses should override this to provide validation logic.

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

formfield(self, **kwargs)

source code 

Returns a django.forms.Field instance for this database Field.

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

db_type(*args, **kwargs)

 
Overrides: django.db.models.fields.Field.db_type

get_db_prep_lookup(*args, **kwargs)

 
Overrides: django.db.models.fields.Field.get_db_prep_lookup

get_db_prep_save(*args, **kwargs)

 
Overrides: django.db.models.fields.Field.get_db_prep_save

get_db_prep_value(*args, **kwargs)

 
Overrides: django.db.models.fields.Field.get_db_prep_value