/
denlarik
/
il2_stats
Обзор
Документация
Войти
/
denlarik
/
il2_stats
Код
Запросы
0
Пакеты
0
Релизы
0
CI/CD
Аналитика
Безопасность
master
src/chunks/models.py
15 строк
490 B
ldu
update project
21 ноя 2020, 14:26
21 ноя 2020, 14:26
e606f7e
Код
Авторство
О чём код?
from django.db import models from django.utils.translation import ugettext_lazy as _ class Chunk(models.Model): key = models.CharField(_('key'), max_length=32, primary_key=True, help_text=_('A unique name for this chunk of content')) title = models.CharField(_('title'), max_length=255, blank=True) content = models.TextField(_('content'), blank=True) class Meta: db_table = 'chunks' def __unicode__(self): return self.key