Answer the question
In order to leave comments, you need to log in
How to correctly display the elements of an existing form using bootstrap 3?
There is a generic.UpdateView
with two model
fields fields = ['data', 'numvh']
There is also html that handles this case
Block fragment
{% block content %}
<form action="" method="post">
{% csrf_token %}
<div class="form-group">
<label>Дата:</label>
<input type="text" class="form-control" {{ form.data }}
</div>
<div class="form-group">
<label>Номер входящего:</label>
<input type="text" class="form-control" {{ form.numvh }}
</div>
input type="submit" class="btn btn-default" value="Внести сведения" />
</form>
{% endblock %}
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question