title: how to set form field value - django
body: <p>I want to show empty form field if there is nothing to show, otherwise a form field with the value inside: </p>
  
  <pre><code>{% if somevalue %}
    {{form.fieldname}} #&lt;---- how do i set the `somevalue` as value of fieldname here?
  {% else %}
    {{form.fieldname}}
  {% endif %}
  </code></pre>