X-Git-Url: https://git.mdrn.pl/wolnelektury.git/blobdiff_plain/b0fadf2591f3af957c1c8e0307d0bcef9e9f8538..0b270a76ad73162f894285c360a0ee87fa84e536:/src/pz/admin.py?ds=inline diff --git a/src/pz/admin.py b/src/pz/admin.py index ad66a9523..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, @@ -118,6 +117,7 @@ class DirectDebitAdmin(admin.ModelAdmin): fieldsets = [ (None, { "fields": [ + 'nosignature', ('first_name', 'sex', 'date_of_birth'), 'last_name', ('street', 'building'), @@ -135,7 +135,7 @@ class DirectDebitAdmin(admin.ModelAdmin): 'campaign', ] }), - (_('Processing'), {"fields": [ + ('Przetwarzanie', {"fields": [ ('cancelled_at', 'needs_redo', 'optout'), 'submission_date', 'fundraiser_commission', @@ -171,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 {