Package django :: Package db :: Package models :: Module base :: Class Model
[show private | hide private]
[frames | no frames]

Type Model

object --+
         |
        Model

Known Subclasses:
Model

Method Summary
  __init__(self, *args, **kwargs)
  __eq__(self, other)
  __hash__(self)
  __ne__(self, other)
  __repr__(self)
  __str__(self)
  _collect_sub_objects(self, seen_objs)
Recursively populates seen_objs with all objects related to this object.
  _get_FIELD_display(self, field)
  _get_FIELD_filename(self, field)
  _get_FIELD_height(self, field)
  _get_FIELD_size(self, field)
  _get_FIELD_url(self, field)
  _get_FIELD_width(self, field)
  _get_image_dimensions(self, field)
  _get_next_or_previous_by_FIELD(self, field, is_next, **kwargs)
  _get_next_or_previous_in_order(self, is_next)
  _get_pk_val(self)
  _save_FIELD_file(self, field, filename, raw_contents, save)
  _set_pk_val(self, value)
  delete(self)
  save(self, raw)
  validate(self)
First coerces all fields on this instance to their proper Python types.
    Inherited from object
  __delattr__(...)
x.__delattr__('name') <==> del x.name
  __getattribute__(...)
x.__getattribute__('name') <==> x.name
  __new__(T, S, ...)
T.__new__(S, ...) -> a new object with type S, a subtype of T
  __reduce__(...)
helper for pickle
  __reduce_ex__(...)
helper for pickle
  __setattr__(...)
x.__setattr__('name', value) <==> x.name = value

Property Summary
  pk

Class Variable Summary
type __metaclass__ = django.db.models.base.ModelBase

Method Details

_collect_sub_objects(self, seen_objs)

Recursively populates seen_objs with all objects related to this object.
When done, seen_objs will be in the format:
    {model_class: {pk_val: obj, pk_val: obj, ...},
     model_class: {pk_val: obj, pk_val: obj, ...}, ...}

validate(self)

First coerces all fields on this instance to their proper Python types. Then runs validation on every field. Returns a dictionary of field_name -> error_list.

Property Details

pk

Get Method:
_get_pk_val(self)
Set Method:
_set_pk_val(self, value)

Generated by Epydoc 2.1 on Tue Apr 29 23:35:17 2008 http://epydoc.sf.net