Upgrade to Django 3.2

This commit is contained in:
cuom1999 2022-10-31 20:43:06 -05:00
parent c1f710c9ac
commit 409d2e3115
23 changed files with 1469 additions and 151 deletions

View file

@ -1,7 +1,5 @@
from abc import ABCMeta, abstractmethod, abstractproperty
from django.utils import six
class abstractclassmethod(classmethod):
__isabstractmethod__ = True
@ -11,7 +9,7 @@ class abstractclassmethod(classmethod):
super(abstractclassmethod, self).__init__(callable)
class BaseContestFormat(six.with_metaclass(ABCMeta)):
class BaseContestFormat(metaclass=ABCMeta):
@abstractmethod
def __init__(self, contest, config):
self.config = config

View file

@ -1,5 +1,3 @@
from django.utils import six
formats = {}
@ -13,4 +11,4 @@ def register_contest_format(name):
def choices():
return [(key, value.name) for key, value in sorted(six.iteritems(formats))]
return [(key, value.name) for key, value in sorted(formats.items())]