summaryrefslogtreecommitdiffstats
path: root/flatpages/models.py
diff options
context:
space:
mode:
Diffstat (limited to 'flatpages/models.py')
-rw-r--r--flatpages/models.py11
1 files changed, 10 insertions, 1 deletions
diff --git a/flatpages/models.py b/flatpages/models.py
index 71a8362..1c97851 100644
--- a/flatpages/models.py
+++ b/flatpages/models.py
@@ -1,3 +1,12 @@
from django.db import models
+from core.models import Cave, Entrance
-# Create your models here.
+class Redirect(models.Model):
+ originalURL = models.CharField(max_length=200, unique=True)
+ newURL = models.CharField(max_length=200)
+
+class EntranceRedirect(models.Model):
+ originalURL = models.CharField(max_length=200)
+ entrance = models.ForeignKey(Entrance)
+ def __unicode__(self):
+ return self.entrance.slug