Hello, I kind of found the answer; for create_update generic view, the framework create a ModelForm object 'form', but in package form, class Field only has the following instance attributes. In particular, why attribute label worked and others did not, can be explained.
In further tracing, why widget method worked is because the max_length attribute of the CharField of the model has a special widget method, which copies the max_length attribute into a 'attr' dictionary, which is in turn used by the widget's render method. Conclusion is (as of Django 1.1.1): within a template, variable tags can access fields, but not their attributes, except for the label attribute. Question: Is this the intended behavior? incl: excerpts of /site-packages/django/forms/fields.py class Field(object): def __init__(self, required=True, widget=None, label=None, initial=None, help_text=None, error_messages=None, show_hidden_initial=False): """ # required -- Boolean that specifies whether the field is required. # True by default. # widget -- A Widget class, or instance of a Widget class, that should # be used for this Field when displaying it. Each Field has a # default Widget that it'll use if you don't specify this. In # most cases, the default widget is TextInput. # label -- A verbose name for this field, for use in displaying this # field in a form. By default, Django will use a "pretty" # version of the form field name, if the Field is part of a # Form. # initial -- A value to use in this Field's initial display. This value # is *not* used as a fallback if data isn't given. # help_text -- An optional string to use as "help text" for this Field. # show_hidden_initial -- Boolean that specifies if it is needed to render a # hidden widget with initial value after widget. """ -- You received this message because you are subscribed to the Google Groups "Django users" group. To post to this group, send email to django-us...@googlegroups.com. To unsubscribe from this group, send email to django-users+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/django-users?hl=en.