drop python2 support, upgrade to django 3
This commit is contained in:
parent
80390a1f9b
commit
844382b1e8
124 changed files with 413 additions and 563 deletions
|
|
@ -1,37 +1,32 @@
|
|||
from django.db import models
|
||||
from django.utils.encoding import python_2_unicode_compatible
|
||||
|
||||
|
||||
@python_2_unicode_compatible
|
||||
class IDAlias(models.Model):
|
||||
old = models.CharField(max_length=255, unique=True)
|
||||
new = models.CharField(max_length=255)
|
||||
|
||||
def __str__(self):
|
||||
return u"%s=%s" % (self.old, self.new)
|
||||
return "%s=%s" % (self.old, self.new)
|
||||
|
||||
@python_2_unicode_compatible
|
||||
class LayerAlias(models.Model):
|
||||
old = models.CharField(max_length=255, unique=True)
|
||||
new = models.CharField(max_length=255)
|
||||
|
||||
def __str__(self):
|
||||
return u"%s=%s" % (self.old, self.new)
|
||||
return "%s=%s" % (self.old, self.new)
|
||||
|
||||
@python_2_unicode_compatible
|
||||
class ListAlias(models.Model):
|
||||
|
||||
old = models.CharField(max_length=255, unique=True)
|
||||
new = models.CharField(max_length=255)
|
||||
|
||||
def __str__(self):
|
||||
return u"%s=%s" % (self.old, self.new)
|
||||
return "%s=%s" % (self.old, self.new)
|
||||
|
||||
@python_2_unicode_compatible
|
||||
class Alias(models.Model):
|
||||
url = models.CharField(max_length=255, unique=True)
|
||||
target = models.CharField(max_length=255)
|
||||
|
||||
def __str__(self):
|
||||
return u"%s=%s" % (self.url, self.target)
|
||||
return "%s=%s" % (self.url, self.target)
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue