using django time/date widgets tradition form
how i nifty javascript date widgets default admin uses tradition view?
i have looked by , fast mentions django.contrib.admin.widgets, nonetheless i don't know it?
here template i wish receptive on.
<form action="." method="post">
<table>
{% f form %}
<tr> <td> {{ f.name }}</td> <td>{{ f }}</td> </tr>
{% endfor %}
</table>
<input type="submit" name="submit" value="add product">
</form>
also, i cruise should remarkable i haven't unequivocally combined perspective adult myself form, i am controlling general view. here opening url.py:
(r'^admin/products/add/$', create_object, {'model': product, 'post_save_redirect': ''}),
and i am relevantly new whole django/mvc/mtv thing, greatfully easy...
Comments
Post a Comment