updated ignore
[archweb_dev-nj.git] / wiki / models.py
blob85f0726c41c163616423a8650ea7e2553a4c362f
1 from django.db import models
2 from django.contrib.auth.models import User
4 class Wikipage(models.Model):
5 """Wiki page storage"""
6 title = models.CharField(maxlength=255)
7 content = models.TextField()
8 last_author = models.ForeignKey(User)
9 class Meta:
10 db_table = 'wikipages'
12 def editurl(self):
13 return "/wiki/edit/" + self.title + "/"
15 def __repr__(self):
16 return self.title
18 # vim: set ts=4 sw=4 et: