cablegates/pandora/urlalias/models.py

25 lines
650 B
Python
Raw Normal View History

2011-01-18 21:00:49 +05:30
from django.db import models
class IDAlias(models.Model):
old = models.CharField(max_length=255, unique=True)
new = models.CharField(max_length=255)
2011-01-21 17:35:43 +05:30
def __unicode__(self):
return u"%s=%s" % (self.old, self.new)
2011-01-18 21:00:49 +05:30
class LayerAlias(models.Model):
old = models.CharField(max_length=255, unique=True)
new = models.CharField(max_length=255)
2011-01-21 17:35:43 +05:30
def __unicode__(self):
return u"%s=%s" % (self.old, self.new)
2011-01-18 21:00:49 +05:30
class Alias(models.Model):
url = models.CharField(max_length=255, unique=True)
target = models.CharField(max_length=255)
2011-01-21 17:35:43 +05:30
def __unicode__(self):
return u"%s=%s" % (self.url, self.target)