1
0
mirror of https://gitlab.crans.org/bde/nk20 synced 2025-06-20 17:41:55 +02:00

Auto-complete first and last name for credits and debits

This commit is contained in:
Yohann D'ANELLO
2020-03-14 15:36:03 +01:00
committed by Bombar Maxime
parent 040bb27528
commit 717891869d
4 changed files with 26 additions and 10 deletions

View File

@ -28,8 +28,7 @@ class TransactionCreate(LoginRequiredMixin, TemplateView):
Add some context variables in template such as page title
"""
context = super().get_context_data(**kwargs)
context['title'] = _('Transfer money from your account '
'to one or others')
context['title'] = _('Transfer money')
context['polymorphic_ctype'] = ContentType.objects.get_for_model(Transaction).pk
context['special_polymorphic_ctype'] = ContentType.objects.get_for_model(SpecialTransaction).pk
context['special_types'] = NoteSpecial.objects.order_by("special_type").all()