2
0
mirror of https://expo.survex.com/repositories/troggle/.git synced 2024-12-02 06:41:55 +00:00
troggle/flatpages/models.py

13 lines
411 B
Python
Raw Normal View History

from django.db import models
from troggle.core.models import Cave, Entrance
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