Mercurial > public > sg101
annotate gpp/legal/models.py @ 7:ca66189c7c44
Added tiny_mce to the GPP_THIRD_PARTY_JS setting. Updated code to use it.
author | Brian Neal <bgneal@gmail.com> |
---|---|
date | Sun, 12 Apr 2009 00:31:36 +0000 |
parents | dbd703f7d63a |
children |
rev | line source |
---|---|
gremmie@1 | 1 """models for the legal module""" |
gremmie@1 | 2 |
gremmie@1 | 3 from django.db import models |
gremmie@1 | 4 |
gremmie@1 | 5 class Policy(models.Model): |
gremmie@1 | 6 policy_type = models.SlugField(help_text = 'A slug for database lookups') |
gremmie@1 | 7 title = models.CharField(max_length = 64) |
gremmie@1 | 8 text = models.TextField() |
gremmie@1 | 9 revised_date = models.DateField() |
gremmie@1 | 10 |
gremmie@1 | 11 def __unicode__(self): |
gremmie@1 | 12 return self.title |
gremmie@1 | 13 |
gremmie@1 | 14 class Meta: |
gremmie@1 | 15 verbose_name_plural = 'Policies' |