Skip to content


Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
branch: master
Alexander Didenko
22 lines (18 sloc) 0.775 kb
# -*- coding: utf-8 -*-
from django.db import models
from django.utils.translation import ugettext_lazy as _
class Chunk(models.Model):
A Chunk is a piece of content associated
with a unique key that can be inserted into
any template with the use of a special template
key = models.CharField(_(u'Key'), help_text=_(u"A unique name for this chunk of content"), blank=False, max_length=255, unique=True)
content = models.TextField(_(u'Content'), blank=True)
description = models.CharField(_(u'Description'), blank=True, max_length=64, help_text=_(u"Short Description"))
class Meta:
verbose_name = _(u'chunk')
verbose_name_plural = _(u'chunks')
def __unicode__(self):
return u"%s" % (self.key,)
Jump to Line
Something went wrong with that request. Please try again.