Skip to content

Commit

Permalink
translations
Browse files Browse the repository at this point in the history
  • Loading branch information
michaelpoi committed Dec 27, 2024
1 parent 6cf6d4c commit d648a89
Show file tree
Hide file tree
Showing 5 changed files with 355 additions and 187 deletions.
4 changes: 4 additions & 0 deletions sendmail/admin/newsletter.py
Original file line number Diff line number Diff line change
Expand Up @@ -110,9 +110,13 @@ def get_list_display(self, request):
def opened(self, obj):
return EmailModel.objects.filter(opened_at__isnull=False, newsletter=obj).count()

opened.short_description = _('Opened')

def clicked(self, obj):
return EmailModel.objects.filter(clicked_at__isnull=False, newsletter=obj).count()

clicked.short_description = _('Clicked')

def click_rate(self, obj):
if not obj.sent_emails:
return 0
Expand Down
Binary file modified sendmail/locale/ru/LC_MESSAGES/django.mo
Binary file not shown.
Loading

0 comments on commit d648a89

Please sign in to comment.