diff --git a/apps/note/forms.py b/apps/note/forms.py index 933e29f5..ac6adaaf 100644 --- a/apps/note/forms.py +++ b/apps/note/forms.py @@ -6,7 +6,7 @@ from django import forms from django.utils.translation import gettext_lazy as _ from .models import Alias -from .models import Transaction, TransactionTemplate +from .models import TransactionTemplate class AliasForm(forms.ModelForm): diff --git a/static/js/base.js b/static/js/base.js index a35a5dc3..53df8329 100644 --- a/static/js/base.js +++ b/static/js/base.js @@ -46,7 +46,7 @@ function refreshBalance() { function getMatchedNotes(pattern, fun) { getJSONSync("/api/note/alias/?format=json&alias=" + pattern + "&search=user|club&ordering=normalized_name", function(aliases) { aliases.results.forEach(function(alias) { - fun(alias, alias.note); + fun(alias.note, alias); }); }); }