summaryrefslogtreecommitdiff
path: root/app/taxonomy/models.py
diff options
context:
space:
mode:
authorlxf <sng@luxagraf.net>2022-05-14 20:29:38 -0400
committerlxf <sng@luxagraf.net>2022-05-14 20:29:38 -0400
commit01e4bdad76b91b34e6f6744a28764eb1c74120de (patch)
tree5a5fd3059bb6ed5bef574257bdb7d766559b7aaf /app/taxonomy/models.py
parentbb3973ffb714c932e9ec6dd6a751228dc71fe1d3 (diff)
updated to support django 4.0
Diffstat (limited to 'app/taxonomy/models.py')
-rw-r--r--app/taxonomy/models.py9
1 files changed, 4 insertions, 5 deletions
diff --git a/app/taxonomy/models.py b/app/taxonomy/models.py
index 4db3294..06f3ab8 100644
--- a/app/taxonomy/models.py
+++ b/app/taxonomy/models.py
@@ -1,6 +1,5 @@
from django.contrib.gis.db import models
from django.urls import reverse
-from django.utils.translation import ugettext_lazy as _
from django.utils.functional import cached_property
from taggit.models import TagBase, GenericTaggedItemBase
@@ -11,8 +10,8 @@ class LuxTag(TagBase):
color_rgb = models.CharField(max_length=20, blank=True)
class Meta:
- verbose_name = _("Tag")
- verbose_name_plural = _("Tags")
+ verbose_name = ("Tag")
+ verbose_name_plural = ("Tags")
@cached_property
def get_absolute_url(self):
@@ -37,8 +36,8 @@ class Category(models.Model):
return self.name
class Meta:
- verbose_name = _("Category")
- verbose_name_plural = _("Categories")
+ verbose_name = ("Category")
+ verbose_name_plural = ("Categories")
def get_absolute_url(self):
return reverse("taxonomy:cat-detail", kwargs={"slug": self.slug})