diff options
author | eliott <eliott@cactuswax.net> | 2007-12-29 16:42:55 -0800 |
---|---|---|
committer | eliott <eliott@cactuswax.net> | 2007-12-29 16:42:55 -0800 |
commit | 3e297efad8e6dbb7622cedd68a2457f00dd09080 (patch) | |
tree | 1d66d932fa8e90bfa2c71f92d77a24b823831540 /wiki/models.py | |
parent | ff6d99b054efddb0725b0ddcbc81c58f7c8ce375 (diff) |
Massive retab fest.
Also added vim command comment to the end of files.
Diffstat (limited to 'wiki/models.py')
-rw-r--r-- | wiki/models.py | 23 |
1 files changed, 13 insertions, 10 deletions
diff --git a/wiki/models.py b/wiki/models.py index 2b8b16fc..85f0726c 100644 --- a/wiki/models.py +++ b/wiki/models.py @@ -2,15 +2,18 @@ from django.db import models from django.contrib.auth.models import User class Wikipage(models.Model): - """Wiki page storage""" - title = models.CharField(maxlength=255) - content = models.TextField() - last_author = models.ForeignKey(User) - class Meta: - db_table = 'wikipages' + """Wiki page storage""" + title = models.CharField(maxlength=255) + content = models.TextField() + last_author = models.ForeignKey(User) + class Meta: + db_table = 'wikipages' - def editurl(self): - return "/wiki/edit/" + self.title + "/" + def editurl(self): + return "/wiki/edit/" + self.title + "/" + + def __repr__(self): + return self.title + +# vim: set ts=4 sw=4 et: - def __repr__(self): - return self.title |