class and id attributes on labels and input html tag
|Reported by:||Owned by:||nobody|
|Cc:||Triage Stage:||Design decision needed|
|Has patch:||no||Needs documentation:||no|
|Needs tests:||no||Patch needs improvement:||no|
I am just learning the django's newform, I am also very new to django. I don't know about the old form, but I found this newform to be very cool! I hope it could provide a way for me to define the class and id attribute of the labels and input tag. So that I would just do something like this so make development stupidly fast...
f = MyForm()
f.as_p() # With this I'll just copy and paste it to my html file.
for simple requirement
we could just pass the f.as_p as context to the template
Change History (4)
comment:1 Changed 9 years ago by
|Patch needs improvement:||unset|
comment:3 Changed 9 years ago by
|Triage Stage:||Unreviewed → Design decision needed|
|Version:||0.96 → SVN|