mirror of
https://expo.survex.com/repositories/troggle/.git
synced 2024-11-29 13:21:54 +00:00
db2d954b1d
Enetrances should probably store their urls like cavers. Maybe the flatpages should be handled by the app Aaron installed.
13 lines
403 B
Python
13 lines
403 B
Python
from django.db import models
|
|
from 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
|