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
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,
@admin.register(models.DirectDebit)
class DirectDebitAdmin(admin.ModelAdmin):
+ #unpaginate
+
list_display = [
'payment_id', 'acquisition_date',
'iban_valid',
'campaign',
]
}),
- (_('Processing'), {"fields": [
+ ('Przetwarzanie', {"fields": [
('cancelled_at', 'needs_redo', 'optout'),
'submission_date',
'fundraiser_commission',
]
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 {