I'm using the update_object generic view.  My template just loops
through the fields like so:

<form method="post" action=".">
{% for field in form.fields %}

<p><label>{{ field.field_name }}</label> {{ field }}
 {% if field.errors %}*** {{ field.errors|join:", "}}{% endif %}</p>

{% endfor %}
<input type="submit" value="Update"/>

I have a couple ForeignKeys in my model and those show up as selects,
but the original value is not selected by default.  Is there any way
to do this?  The CharField values all come up just fine.

Thanks,

Bryan

Reply via email to