summaryrefslogtreecommitdiff
path: root/ishtar_common/models.py
diff options
context:
space:
mode:
authorÉtienne Loks <etienne.loks@iggdrasil.net>2025-06-13 18:08:00 +0200
committerÉtienne Loks <etienne.loks@iggdrasil.net>2025-06-13 18:08:00 +0200
commit7e6016b2bb9732b6b2432ec9329213a1d0c9c9a5 (patch)
treee0578d822d2a267b3f48c1e032fce9e77809e4ae /ishtar_common/models.py
parent17426c62ae8bd08d9c66ac0f97dbad1f26d8d154 (diff)
downloadIshtar-7e6016b2bb9732b6b2432ec9329213a1d0c9c9a5.tar.bz2
Ishtar-7e6016b2bb9732b6b2432ec9329213a1d0c9c9a5.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 d81d25ca5..ca6763a3f 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,
@@ -5243,9 +5243,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"]),