summaryrefslogtreecommitdiff
path: root/ishtar_common/models.py
diff options
context:
space:
mode:
authorÉtienne Loks <etienne.loks@iggdrasil.net>2025-10-15 19:03:22 +0200
committerÉtienne Loks <etienne.loks@iggdrasil.net>2025-10-15 19:32:59 +0200
commit31ae6562099cca5e692fdcdccf0852433d295a3a (patch)
tree365de723a1b9430e1d6f44618c52f2dd4a1abe48 /ishtar_common/models.py
parentf5077bcd3cea76f48a2d635385e4b85a16bf6000 (diff)
downloadIshtar-31ae6562099cca5e692fdcdccf0852433d295a3a.tar.bz2
Ishtar-31ae6562099cca5e692fdcdccf0852433d295a3a.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 da827f99b..4ae11a777 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 ImporterError, post_importer_action
from ishtar_common.utils import (
- ugettext_lazy as _,
- ugettext,
+ gettext_lazy as _,
+ gettext,
pgettext_lazy,
format_date,
get_generated_id,
@@ -5291,9 +5291,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"]),