From 6e4f7a0390b7f49ce79f0e15e07e1d6df309f3ce Mon Sep 17 00:00:00 2001 From: Étienne Loks Date: Fri, 12 Feb 2021 15:43:15 +0100 Subject: Refactor - clean --- archaeological_operations/models.py | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) (limited to 'archaeological_operations/models.py') diff --git a/archaeological_operations/models.py b/archaeological_operations/models.py index 0c4f6330b..014d1071b 100644 --- a/archaeological_operations/models.py +++ b/archaeological_operations/models.py @@ -212,7 +212,7 @@ class ArchaeologicalSite(DocumentItem, BaseHistorizedItem, CompleteIdentifierIte 'towns__cached_label__iexact' ), 'towns__areas': SearchAltName( - pgettext_lazy("key for text search", u"area"), + pgettext_lazy("key for text search", "area"), 'towns__areas__label__iexact' ), 'comment': SearchAltName( @@ -286,13 +286,13 @@ class ArchaeologicalSite(DocumentItem, BaseHistorizedItem, CompleteIdentifierIte QA_LOCK = QuickAction( url="site-qa-lock", icon_class="fa fa-lock", - text=_(u"Lock/Unlock"), target="many", + text=_("Lock/Unlock"), target="many", rights=['change_archaeologicalsite', 'change_own_archaeologicalsite'] ) QA_EDIT = QuickAction( url="site-qa-bulk-update", icon_class="fa fa-pencil", - text=_(u"Bulk update"), target="many", + text=_("Bulk update"), target="many", rights=['change_archaeologicalsite', 'change_own_archaeologicalsite'] ) @@ -863,7 +863,7 @@ class Operation(ClosedItem, DocumentItem, BaseHistorizedItem, 'towns__cached_label__iexact' ), 'towns__areas': SearchAltName( - pgettext_lazy("key for text search", u"area"), + pgettext_lazy("key for text search", "area"), 'towns__areas__label__iexact' ), 'parcel': SearchAltName( @@ -1000,12 +1000,12 @@ class Operation(ClosedItem, DocumentItem, BaseHistorizedItem, QA_EDIT = QuickAction( url="operation-qa-bulk-update", icon_class="fa fa-pencil", - text=_(u"Bulk update"), target="many", + text=_("Bulk update"), target="many", rights=['change_operation', 'change_own_operation'] ) QA_LOCK = QuickAction( url="operation-qa-lock", icon_class="fa fa-lock", - text=_(u"Lock/Unlock"), target="many", + text=_("Lock/Unlock"), target="many", rights=['change_operation', 'change_own_operation'] ) QUICK_ACTIONS = [ -- cgit v1.2.3