X-Git-Url: https://git.mdrn.pl/wolnelektury.git/blobdiff_plain/1c281eadaa7164d9b6e76be6ae325561c0297965..ca8f4e8fef80cb603117ed579da8554f503698e5:/src/pz/admin.py?ds=inline diff --git a/src/pz/admin.py b/src/pz/admin.py index 1b8838315..1bbb1da6d 100644 --- a/src/pz/admin.py +++ b/src/pz/admin.py @@ -5,7 +5,6 @@ from django.db.models import Q from django.shortcuts import get_object_or_404, redirect from django.urls import path, reverse from django.utils.safestring import mark_safe -from django.utils.translation import gettext_lazy as _ from django.utils.timezone import now from fnpdjango.actions import export_as_csv_action from . import bank @@ -43,9 +42,9 @@ class EmptyFieldListFilter(FieldListFilter): def choices(self, changelist): for lookup, title in ( - (None, _('All')), - ('1', _('Empty')), - ('0', _('Not empty')), + (None, 'Wszystkie'), + ('1', 'Puste'), + ('0', 'Niepuste'), ): yield { 'selected': self.lookup_val == lookup, @@ -81,6 +80,8 @@ class BankPaymentInline(admin.TabularInline): @admin.register(models.DirectDebit) class DirectDebitAdmin(admin.ModelAdmin): + #unpaginate + list_display = [ 'payment_id', 'acquisition_date', 'iban_valid', @@ -116,6 +117,7 @@ class DirectDebitAdmin(admin.ModelAdmin): fieldsets = [ (None, { "fields": [ + 'nosignature', ('first_name', 'sex', 'date_of_birth'), 'last_name', ('street', 'building'), @@ -133,7 +135,7 @@ class DirectDebitAdmin(admin.ModelAdmin): 'campaign', ] }), - (_('Processing'), {"fields": [ + ('Przetwarzanie', {"fields": [ ('cancelled_at', 'needs_redo', 'optout'), 'submission_date', 'fundraiser_commission', @@ -169,8 +171,8 @@ class DirectDebitAdmin(admin.ModelAdmin): ] def agree_contact(self, obj): - return _('obligatory') - agree_contact.short_description = _('agree contact') + return 'obowiązkowo' + agree_contact.short_description = 'zgoda na kontakt' def get_changeform_initial_data(self, request): return {