Fixed alias research

This commit is contained in:
Yohann D'ANELLO 2020-03-13 10:34:47 +01:00
parent 8c795c38dc
commit a1f7f8f5b7
2 changed files with 2 additions and 2 deletions

View File

@ -6,7 +6,7 @@ from django import forms
from django.utils.translation import gettext_lazy as _ from django.utils.translation import gettext_lazy as _
from .models import Alias from .models import Alias
from .models import Transaction, TransactionTemplate from .models import TransactionTemplate
class AliasForm(forms.ModelForm): class AliasForm(forms.ModelForm):

View File

@ -46,7 +46,7 @@ function refreshBalance() {
function getMatchedNotes(pattern, fun) { function getMatchedNotes(pattern, fun) {
getJSONSync("/api/note/alias/?format=json&alias=" + pattern + "&search=user|club&ordering=normalized_name", function(aliases) { getJSONSync("/api/note/alias/?format=json&alias=" + pattern + "&search=user|club&ordering=normalized_name", function(aliases) {
aliases.results.forEach(function(alias) { aliases.results.forEach(function(alias) {
fun(alias, alias.note); fun(alias.note, alias);
}); });
}); });
} }