<form method="POST" class="post-form" enctype="multipart/form-data">{% csrf_token %}
{{ form|bootstrap}}
<button type="submit" class="save send">Сохранить</button>
</form>
class FarmEditFood(forms.ModelForm):
class Meta:
model = Ranch
fields = ('foods','category','ranchmode','typeprod','ranchmode', 'delivery','delivery2' )