2
0
mirror of https://expo.survex.com/repositories/troggle/.git synced 2024-11-22 07:11:52 +00:00
troggle/flatpages/models.py

13 lines
438 B
Python
Raw Normal View History

from django.db import models
from troggle.core.models_caves 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)
2020-06-18 00:20:47 +01:00
entrance = models.ForeignKey(Entrance,on_delete=models.CASCADE)
2020-05-26 02:21:36 +01:00
def __str__(self):
return self.entrance.slug