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
)
10 db_table
= 'wikipages'
13 return "/wiki/edit/" + self
.title
+ "/"
18 # vim: set ts=4 sw=4 et: