From 01e4bdad76b91b34e6f6744a28764eb1c74120de Mon Sep 17 00:00:00 2001 From: lxf Date: Sat, 14 May 2022 20:29:38 -0400 Subject: updated to support django 4.0 --- app/taxonomy/models.py | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) (limited to 'app/taxonomy/models.py') 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}) -- cgit v1.2.3-70-g09d2