urlalias = app to migrate old urls
This commit is contained in:
parent
b1924e3c47
commit
287ef26dff
4 changed files with 50 additions and 0 deletions
15
pandora/urlalias/models.py
Normal file
15
pandora/urlalias/models.py
Normal file
|
|
@ -0,0 +1,15 @@
|
|||
from django.db import models
|
||||
|
||||
|
||||
class IDAlias(models.Model):
|
||||
old = models.CharField(max_length=255, unique=True)
|
||||
new = models.CharField(max_length=255)
|
||||
|
||||
class LayerAlias(models.Model):
|
||||
old = models.CharField(max_length=255, unique=True)
|
||||
new = models.CharField(max_length=255)
|
||||
|
||||
class Alias(models.Model):
|
||||
url = models.CharField(max_length=255, unique=True)
|
||||
target = models.CharField(max_length=255)
|
||||
|
||||
Loading…
Add table
Add a link
Reference in a new issue