summaryrefslogtreecommitdiffstats
path: root/wiki
diff options
context:
space:
mode:
authoreliott <eliott@cactuswax.net>2008-03-08 09:13:41 +0100
committereliott <eliott@cactuswax.net>2008-03-08 09:13:41 +0100
commit9b7b5122544283fc32d81d785e94c5f4aacc0109 (patch)
treeba117f7fadc24737920fa4f1b9a711157e629cc5 /wiki
parent7e2d0f2f0cd8f176cf82c02d704ad4fe25a07b3b (diff)
downloadarchweb-9b7b5122544283fc32d81d785e94c5f4aacc0109.tar.gz
archweb-9b7b5122544283fc32d81d785e94c5f4aacc0109.tar.xz
Moved models around
Diffstat (limited to 'wiki')
-rw-r--r--wiki/models.py19
-rw-r--r--wiki/templatetags/wikitags.py2
-rw-r--r--wiki/views.py4
3 files changed, 3 insertions, 22 deletions
diff --git a/wiki/models.py b/wiki/models.py
deleted file mode 100644
index 85f0726..0000000
--- a/wiki/models.py
+++ /dev/null
@@ -1,19 +0,0 @@
-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'
-
- def editurl(self):
- return "/wiki/edit/" + self.title + "/"
-
- def __repr__(self):
- return self.title
-
-# vim: set ts=4 sw=4 et:
-
diff --git a/wiki/templatetags/wikitags.py b/wiki/templatetags/wikitags.py
index c8c1cd3..da662e8 100644
--- a/wiki/templatetags/wikitags.py
+++ b/wiki/templatetags/wikitags.py
@@ -1,6 +1,6 @@
from django.template import Library
from django.conf import settings
-from archweb_dev.lib import markdown
+from archweb_dev.main import markdown
import re
register = Library()
diff --git a/wiki/views.py b/wiki/views.py
index 796f5f9..4c9f732 100644
--- a/wiki/views.py
+++ b/wiki/views.py
@@ -3,8 +3,8 @@
#
from django.http import HttpResponse, HttpResponseRedirect
from django.contrib.auth.decorators import login_required
-from archweb_dev.lib.utils import render_response
-from archweb_dev.wiki.models import Wikipage
+from archweb_dev.main.utils import render_response
+from archweb_dev.main.models import Wikipage
@login_required
def index(request):