You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
24 lines
856 B
24 lines
856 B
# -*- coding: utf-8 -*-
|
|
from django.db import models
|
|
from hvad.models import TranslatableModel, TranslatedFields
|
|
|
|
class Service(TranslatableModel):
|
|
|
|
url = models.SlugField(unique=True)
|
|
|
|
price = models.CharField(max_length=20, blank=True)
|
|
params = models.CharField(max_length=255, blank=True)
|
|
#translated fields
|
|
translations = TranslatedFields(
|
|
name = models.CharField(max_length=50),
|
|
main_title = models.TextField(),
|
|
description = models.TextField(),
|
|
advantage = models.TextField(blank=True),
|
|
#meta fields
|
|
title = models.CharField(max_length=255, blank=True),
|
|
descriptions = models.CharField(max_length=255, blank=True),
|
|
keywords = models.CharField(max_length=255, blank=True),
|
|
)
|
|
|
|
def __unicode__(self):
|
|
return self.lazy_translation_getter('name', self.pk) |