X-Git-Url: https://git.mdrn.pl/wolnelektury.git/blobdiff_plain/967eed676fc83d15b26149047f353ac61faa8217..031b8be3bf03baa724dd7e225b0555726d089341:/src/push/models.py diff --git a/src/push/models.py b/src/push/models.py index bb84b992f..54fd1a04b 100644 --- a/src/push/models.py +++ b/src/push/models.py @@ -1,16 +1,15 @@ -# -*- coding: utf-8 -*- # This file is part of Wolnelektury, licensed under GNU Affero GPLv3 or later. # Copyright © Fundacja Nowoczesna Polska. See NOTICE for more information. # from django.db import models -from django.utils.translation import ugettext_lazy as _ +from django.utils.translation import gettext_lazy as _ class Notification(models.Model): timestamp = models.DateTimeField(auto_now_add=True) - title = models.CharField(max_length=256, verbose_name=_(u'title')) - body = models.CharField(max_length=2048, verbose_name=_(u'content')) - image = models.ImageField(verbose_name=_(u'image'), blank=True, upload_to='push/img') + title = models.CharField(max_length=256, verbose_name=_('title')) + body = models.CharField(max_length=2048, verbose_name=_('content')) + image = models.ImageField(verbose_name=_('image'), blank=True, upload_to='push/img') message_id = models.CharField(max_length=2048) class Meta: