X-Git-Url: http://git.ithinksw.org/philo.git/blobdiff_plain/fbe780ee3c39c4feea456aa9d36c89467900191c:/contrib/cowell/fields.py..bddd7e55dc480658fef0304611207a256550b914:/models/fields/entities.py?ds=sidebyside diff --git a/contrib/cowell/fields.py b/models/fields/entities.py similarity index 94% rename from contrib/cowell/fields.py rename to models/fields/entities.py index 176554e..6c407d0 100644 --- a/contrib/cowell/fields.py +++ b/models/fields/entities.py @@ -1,11 +1,11 @@ """ -The Attributes defined in this file can be assigned as fields on a -subclass of philo.models.Entity. They act like any other model fields, -but instead of saving their data to the database, they save it to -attributes related to a model instance. Additionally, a new attribute will -be created for an instance if and only if the field's value has been set. -This is relevant i.e. for passthroughs, where the value of the field may -be defined by some other instance's attributes. +The EntityProxyFields defined in this file can be assigned as fields on +a subclass of philo.models.Entity. They act like any other model +fields, but instead of saving their data to the database, they save it +to attributes related to a model instance. Additionally, a new +attribute will be created for an instance if and only if the field's +value has been set. This is relevant i.e. for passthroughs, where the +value of the field may be defined by some other instance's attributes. Example::