diff --git a/apps/treasury/forms.py b/apps/treasury/forms.py index 85beaadc..4c761ef2 100644 --- a/apps/treasury/forms.py +++ b/apps/treasury/forms.py @@ -8,7 +8,6 @@ from crispy_forms.layout import Submit from django import forms from django.utils.translation import gettext_lazy as _ from note_kfet.inputs import DatePickerInput, AmountInput -from permission.backends import PermissionBackend from .models import Invoice, Product, Remittance, SpecialTransactionProxy diff --git a/apps/treasury/views.py b/apps/treasury/views.py index 4e64ce94..1ab87f09 100644 --- a/apps/treasury/views.py +++ b/apps/treasury/views.py @@ -241,7 +241,7 @@ class RemittanceListView(LoginRequiredMixin, TemplateView): no_remittance_tr = SpecialTransactionTable( data=SpecialTransaction.objects.filter(source__in=NoteSpecial.objects.filter(~Q(remittancetype=None)), specialtransactionproxy__remittance=None).filter( - PermissionBackend.filter_queryset(self.request.user, Remittance, "view")).all(), + PermissionBackend.filter_queryset(self.request.user, Remittance, "view")).all(), exclude=('remittance_remove', ), prefix="no-remittance-", )