summaryrefslogtreecommitdiff
path: root/ishtar_common/models_common.py
diff options
context:
space:
mode:
authorÉtienne Loks <etienne.loks@iggdrasil.net>2021-02-04 18:54:48 +0100
committerÉtienne Loks <etienne.loks@iggdrasil.net>2021-02-28 12:15:24 +0100
commitfdea77fd9347638409ac56948c87e7f61af8847c (patch)
tree43fc3285486bace07d3ce0588c8960328664c52a /ishtar_common/models_common.py
parent8eebd435f302bacd6ad5a584cbed55919a55f4bf (diff)
downloadIshtar-fdea77fd9347638409ac56948c87e7f61af8847c.tar.bz2
Ishtar-fdea77fd9347638409ac56948c87e7f61af8847c.zip
Typo fix
Diffstat (limited to 'ishtar_common/models_common.py')
-rw-r--r--ishtar_common/models_common.py14
1 files changed, 7 insertions, 7 deletions
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 * "</dl>"
- 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"),