> If you look at the rendered HTML for the
> label on a required field, it already has a 'required' class
That's true only for admin forms because they use special AdminField
class with custom label_tag() method. Normal Django forms don't have
this feature. There is a ticket for this
http://code
> This is what CSS is for. If you look at the rendered HTML for the
> label on a required field, it already has a 'required' class - for
> example:
>
> Title:
>
> By default, the admin makes required fields bold; if you want to apply
> a trailing asterisk, you should be able to use the 'content' C
2009/8/10 Filip Gruszczyński :
>
> Hi everyone!
>
> Putting asterisks after a required field is a common practice. To
> achieve I use right now a filter that is invoked after every form
> field in a template. This isn't very convenient, but I haven't found
> any better solution yet.
>
> I wonder i
Hi everyone!
Putting asterisks after a required field is a common practice. To
achieve I use right now a filter that is invoked after every form
field in a template. This isn't very convenient, but I haven't found
any better solution yet.
I wonder if something like this couldn't be added to Djan