X-Git-Url: http://git.ithinksw.org/philo.git/blobdiff_plain/d19e216035b14d8f60b24dda0c0670e6997f16ce..refs/heads/gilbert-ext4:/philo/forms/entities.py diff --git a/philo/forms/entities.py b/philo/forms/entities.py index e781128..ba72d7d 100644 --- a/philo/forms/entities.py +++ b/philo/forms/entities.py @@ -1,5 +1,6 @@ from django.forms.models import ModelFormMetaclass, ModelForm, ModelFormOptions from django.utils.datastructures import SortedDict + from philo.utils import fattr @@ -93,6 +94,10 @@ class EntityFormMetaclass(ModelFormMetaclass): class EntityForm(ModelForm): + """ + :class:`EntityForm` knows how to handle :class:`.Entity` instances - specifically, how to set initial values for :class:`.AttributeProxyField`\ s and save cleaned values to an instance on save. + + """ __metaclass__ = EntityFormMetaclass def __init__(self, *args, **kwargs):