gremmie@1: """models for the legal module""" gremmie@1: gremmie@1: from django.db import models gremmie@1: gremmie@1: class Policy(models.Model): gremmie@1: policy_type = models.SlugField(help_text = 'A slug for database lookups') gremmie@1: title = models.CharField(max_length = 64) gremmie@1: text = models.TextField() gremmie@1: revised_date = models.DateField() gremmie@1: gremmie@1: def __unicode__(self): gremmie@1: return self.title gremmie@1: gremmie@1: class Meta: gremmie@1: verbose_name_plural = 'Policies'