I'm trying to set a default form value in the template, and not in the forms.py file (because I'm trying to make the default value dynamic depending on something that javascript will return). So To test it, I have the following line in my template:
{{ form.first_name|default:"Enter Your first name" }} The issue is that it doesn't work, And I can't figure out why. Am I doing something illegal? Help Please. Thank you. -- You received this message because you are subscribed to the Google Groups "Django users" group. To post to this group, send email to django-users@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.