From 27c6ee68fb90f47bf7a5a94c6f0eefa09b6e53b9 Mon Sep 17 00:00:00 2001 From: Étienne Loks Date: Thu, 4 Feb 2021 18:54:48 +0100 Subject: Typo fix --- ishtar_common/models_common.py | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) (limited to 'ishtar_common/models_common.py') diff --git a/ishtar_common/models_common.py b/ishtar_common/models_common.py index 6d8db23e0..2d8966066 100644 --- a/ishtar_common/models_common.py +++ b/ishtar_common/models_common.py @@ -295,7 +295,7 @@ class GeneralType(Cached, models.Model): c_rank += 1 if c_rank: help_items += c_rank * "" - if help_text or help_items != u'\n': + if help_text or help_items != '\n': help_text = help_text + help_items else: help_text = "" @@ -1195,11 +1195,11 @@ class BaseHistorizedItem(StatisticItem, TemplateItem, FullSearch, Imported, ALT_NAMES = { 'history_creator': SearchAltName( - pgettext_lazy("key for text search", u"created-by"), + pgettext_lazy("key for text search", "created-by"), 'history_creator__ishtaruser__person__cached_label__iexact' ), 'history_modifier': SearchAltName( - pgettext_lazy("key for text search", u"modified-by"), + pgettext_lazy("key for text search", "modified-by"), 'history_modifier__ishtaruser__person__cached_label__iexact' ), 'modified_before': SearchAltName( @@ -2041,7 +2041,7 @@ class Address(BaseHistorizedItem): return lbl def address_lbl(self): - lbl = u'' + lbl = '' prefix = '' if self.alt_address_is_prefered: prefix = 'alt_' @@ -2529,11 +2529,11 @@ class GeoItem(models.Model): x = models.FloatField(_('X'), blank=True, null=True) y = models.FloatField(_('Y'), blank=True, null=True) z = models.FloatField(_('Z'), blank=True, null=True) - estimated_error_x = models.FloatField(_(u'Estimated error for X'), + estimated_error_x = models.FloatField(_('Estimated error for X'), blank=True, null=True) - estimated_error_y = models.FloatField(_(u'Estimated error for Y'), + estimated_error_y = models.FloatField(_('Estimated error for Y'), blank=True, null=True) - estimated_error_z = models.FloatField(_(u'Estimated error for Z'), + estimated_error_z = models.FloatField(_('Estimated error for Z'), blank=True, null=True) spatial_reference_system = models.ForeignKey( SpatialReferenceSystem, verbose_name=_("Spatial Reference System"), -- cgit v1.2.3