Hi stack overflow,
I'm trying to style a form with CSS. First of all I haven't seen a complete example, other than on the official documentation, so I would appreciate any blog entries, or articles.
Now on my form, a typical Charfield gets translated on html like this: input type="text" name="artists" id="id_artists"
If my form contains errors on some field, the previous Charfield remembers the value and goes:
input type="text" name="artists" value="Pink Floyd" id="id_artists"
How can I get this value (value="Pink Floyd") in django forms? Say my field is {{form.artists}}, I can use {{form.artists}} as the field, {{form.artists.label}} as label, {{form.artists.errors}} and {{form.artists.help_text}}, but how about this value?
Thanks in advance!