Initial commit from ZIP
This commit is contained in:
commit
378d4692a9
454 files changed
+40367
No files matched your search
@@ -0,0 +1,17 @@
|
||||
from django.db import models
|
||||
from rules.contrib.models import RulesModel
|
||||
|
||||
from outbo.apps.core.models import TimestampableDeletableMixin
|
||||
from django.utils.translation import gettext_lazy as _, pgettext
|
||||
|
||||
|
||||
class Category(TimestampableDeletableMixin, RulesModel):
|
||||
class Meta:
|
||||
verbose_name = _("category")
|
||||
verbose_name_plural = _("categories")
|
||||
|
||||
label = models.CharField(verbose_name=_("label"), max_length=30, primary_key=True)
|
||||
description = models.CharField(verbose_name=_("description"), max_length=30)
|
||||
|
||||
def __str__(self):
|
||||
return pgettext("photo_brief_categories", self.description)
|
||||
Reference in new issue
Block a user