2
0
mirror of https://expo.survex.com/repositories/troggle/.git synced 2025-12-14 17:17:07 +00:00

Added flat pages for entrance and special flatpage redirects.

Enetrances should probably store their urls like cavers.  Maybe the flatpages should be handled by the app Aaron installed.
This commit is contained in:
Martin Green
2011-07-11 00:13:06 +01:00
parent de5f68e42c
commit 8578a3097a
3 changed files with 52 additions and 3 deletions

View File

@@ -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