blob: cdb36be05dcca8a49df34e701e948efd0bc6fcbd (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
|
from django.db import models
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
tag
"""
key = models.CharField(help_text="A unique name for this chunk of content", blank=False, max_length=255, unique=True)
content = models.TextField(blank=True)
def __unicode__(self):
return u"%s" % (self.key,)
|