Skip to content

Commit

Permalink
Componentlist: Add cache key mixin
Browse files Browse the repository at this point in the history
  • Loading branch information
nijel committed Jul 28, 2020
1 parent 88901a4 commit 7ffe6e1
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion weblate/trans/models/componentlist.py
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,7 @@
from django.utils.translation import gettext_lazy as _

from weblate.trans.fields import RegexField
from weblate.trans.mixins import CacheKeyMixin
from weblate.utils.stats import ComponentListStats


Expand All @@ -34,7 +35,7 @@ def order(self):
return self.order_by("name")


class ComponentList(models.Model):
class ComponentList(models.Model, CacheKeyMixin):

name = models.CharField(
verbose_name=_("Component list name"),
Expand Down

0 comments on commit 7ffe6e1

Please sign in to comment.