Fixed typo to show correctly the tags
This commit is contained in:
parent
8cc364879a
commit
868fe23bbd
@ -25,6 +25,7 @@ class ExpenseForm(forms.ModelForm):
|
||||
]
|
||||
widgets = {
|
||||
'date': forms.DateInput(attrs={'type': 'date'}),
|
||||
'widget': forms.CheckboxSelectMultiple(),
|
||||
}
|
||||
|
||||
class TagForm(forms.ModelForm):
|
||||
|
||||
@ -76,7 +76,7 @@
|
||||
<td>{{ expense.category.name }}</td>
|
||||
<td>{{ expense.amount }}</td>
|
||||
<td>
|
||||
{% for tag in expenses.tags.all %}
|
||||
{% for tag in expense.tags.all %}
|
||||
<span>{{ tag.name }}</span>{% if not forloop.last %}, {% endif %}
|
||||
{% empty %}
|
||||
-
|
||||
|
||||
Loading…
Reference in New Issue
Block a user