drop python2 support, upgrade to django 3

This commit is contained in:
j 2020-05-29 00:20:18 +02:00
commit 844382b1e8
124 changed files with 413 additions and 563 deletions

View file

@ -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)