Generated: Fri 2015-09-18 14:41 CEST
Source file: /home/tyrdall/projects/bitmazk-contact-form/src/contact_form/models.py
Stats: 3 executed, 0 missed, 5 excluded, 18 ignored
"""Models for the ``contact_form`` app."""from django.db import modelsfrom django.utils.translation import ugettext_lazy as _from hvad.models import TranslatableModel, TranslatedFieldsclass ContactFormCategory(TranslatableModel): """ The category of the users contact request. Is created as translatable master data by the admin. For translatable fields check the ``ContactFormCategoryTranslation`` model. """ slug = models.SlugField( max_length=256, verbose_name=_('Slug'), ) translations = TranslatedFields( name=models.CharField(max_length=256), ) def __unicode__(self): return self.lazy_translation_getter('name', 'Untranslated')