diff options
author | Étienne Loks <etienne.loks@iggdrasil.net> | 2021-02-12 15:43:15 +0100 |
---|---|---|
committer | Étienne Loks <etienne.loks@iggdrasil.net> | 2021-02-28 12:15:24 +0100 |
commit | 13b9ef1c26bb89349a15be94db7d01512e270d5a (patch) | |
tree | bb7c35ca850f60028c576ee42e3fb95db20a64be /archaeological_operations/models.py | |
parent | 7e6c628ff9f4d27609efda613b790f87bbeacea1 (diff) | |
download | Ishtar-13b9ef1c26bb89349a15be94db7d01512e270d5a.tar.bz2 Ishtar-13b9ef1c26bb89349a15be94db7d01512e270d5a.zip |
Refactor - clean
Diffstat (limited to 'archaeological_operations/models.py')
-rw-r--r-- | archaeological_operations/models.py | 12 |
1 files changed, 6 insertions, 6 deletions
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 = [ |