user setting default ingredient unit

This commit is contained in:
vabene1111
2020-04-13 22:37:50 +02:00
parent 8eb0c36665
commit 4f49b06704
5 changed files with 24 additions and 3 deletions

View File

@@ -189,7 +189,7 @@
data.push({
ingredient__name: "{% trans 'Ingredient' %}",
amount: "100",
unit__name: "g",
unit__name: "{{ request.user.userpreference.default_unit }}",
note: "",
id: Math.floor(Math.random() * 10000000),
delete: false,