Logo Search packages:      
Sourcecode: zine version File versions  Download package

zine::utils::forms::ModelField Class Reference

Inheritance diagram for zine::utils::forms::ModelField:

zine::utils::forms::Field zine::utils::forms::HiddenModelField

List of all members.

Detailed Description

A field that queries for a model.

The first argument is the name of the model, the second the named
argument for `filter_by` (eg: `User` and ``'username'``).  If the
key is not given (None) the primary key is assumed.

Definition at line 1326 of file forms.py.

Public Member Functions

def __call__
def __copy__
def __init__
def __init__
def __repr__
def apply_validators
def bound
def convert
def get_default
def should_validate
def to_primitive

Public Attributes


Static Public Attributes

tuple choices = ()
 form = None
tuple messages = dict(not_found=lazy_gettext(u'ā€œ%(value)sā€ does not exist'))
 multiple_choices = False
 validate_on_omission = False
 widget = TextInput

Private Member Functions

def _coerce_value

The documentation for this class was generated from the following file:

Generated by  Doxygen 1.6.0   Back to index