Add migrations.

This commit is contained in:
Sebastian Markgraf
2020-10-16 23:59:19 +02:00
parent 2b1cde2efc
commit 7a89015ac5
2 changed files with 71 additions and 2 deletions

View File

@@ -210,7 +210,7 @@
<hr>
<h3>{% trans 'Nutrition' %}</h3>
{% for n in recipe.nutrition.nutritions.all %}
{{ n.type.type }}: {{ n.value|floatformat:2 }} {{ n.type.unit.short }}
<div>{{ n.type.type }}: {{ n.value|floatformat:2 }} {{ n.type.unit.short }}</div>
{% endfor %}
</div>
{% endif %}
@@ -483,7 +483,6 @@
this.$http.get("{% url 'api:recipe-detail' recipe.pk %}" {% if share %}
+ "?share={{ share }}"{% endif %}).then((response) => {
this.recipe = response.data;
console.log(this.recipe);
this.loading = false;
for (let step of this.recipe.steps) {