summaryrefslogtreecommitdiff
path: root/ishtar_common/models.py
diff options
context:
space:
mode:
authorÉtienne Loks <etienne.loks@iggdrasil.net>2025-06-18 18:41:21 +0200
committerÉtienne Loks <etienne.loks@iggdrasil.net>2025-07-21 15:07:41 +0200
commita943717c1adf586d3f59ad35608dbbf306ab45eb (patch)
treef836cb832551cd1604dff2c99a42cb59ccb8adf7 /ishtar_common/models.py
parent3e1baf5804b27cb84c5db0121d6352d5b80a1535 (diff)
downloadIshtar-a943717c1adf586d3f59ad35608dbbf306ab45eb.tar.bz2
Ishtar-a943717c1adf586d3f59ad35608dbbf306ab45eb.zip
♻️ django 3.2 deprecation: url -> re_path ; ugettext_lazy -> gettext_lazy
Diffstat (limited to 'ishtar_common/models.py')
-rw-r--r--ishtar_common/models.py10
1 files changed, 5 insertions, 5 deletions
diff --git a/ishtar_common/models.py b/ishtar_common/models.py
index 5ae5b276e..e3f2b8b61 100644
--- a/ishtar_common/models.py
+++ b/ishtar_common/models.py
@@ -82,8 +82,8 @@ from django.utils.functional import lazy
from django.utils.safestring import mark_safe
from ishtar_common.data_importer import post_importer_action
from ishtar_common.utils import (
- ugettext_lazy as _,
- ugettext,
+ gettext_lazy as _,
+ gettext,
pgettext_lazy,
format_date,
get_generated_id,
@@ -5275,9 +5275,9 @@ class Document(
verbose_name_plural = _("Documents")
ordering = ("title",)
permissions = (
- ("view_own_document", ugettext("Can view own Document")),
- ("change_own_document", ugettext("Can change own Document")),
- ("delete_own_document", ugettext("Can delete own Document")),
+ ("view_own_document", gettext("Can view own Document")),
+ ("change_own_document", gettext("Can change own Document")),
+ ("delete_own_document", gettext("Can delete own Document")),
)
indexes = [
GinIndex(fields=["data"]),