After much searching, the closest answer I can find for this is here:
http://groups.google.com/group/django-users/browse_thread/thread/24edd54c637f19a7

with the "solution" being:
    text = forms.CharField(label="text", max_length=10,
        widget=forms.TextInput(
            attrs={'size':'10', 'class':'inputText'}))

This does not work for an admin form:

class Test(models.Model):
    id = models.AutoField(primary_key=True)
    comments =
models.CharField(label="comment",max_length=250,blank=True,null=True,\
        widget=forms.TextInput(attrs={'size':'50', 'class':'inputText'}))
    ...

So how do I set it here?

(Sidebar:  it strikes me that I likely do not grok the differences between
model and form in this circumstance.)

--

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.


Reply via email to