From 62e4362abc346286a65800c47602e91b5c8ecdf8 Mon Sep 17 00:00:00 2001 From: Erik Stein Date: Wed, 27 Apr 2022 00:27:03 +0200 Subject: [PATCH] Removed Python 2 compat. --- tests/test_app/models.py | 6 ------ tests/test_app/tests.py | 2 +- 2 files changed, 1 insertion(+), 7 deletions(-) diff --git a/tests/test_app/models.py b/tests/test_app/models.py index 7a7e675..12a2dae 100644 --- a/tests/test_app/models.py +++ b/tests/test_app/models.py @@ -1,16 +1,11 @@ -# -*- coding: utf-8 -*- -from __future__ import unicode_literals - from django.urls import reverse from django.core.urlresolvers import NoReverseMatch from django.db import models from django.utils.translation import ugettext_lazy as _ -from django.utils.encoding import python_2_unicode_compatible from utils.fields import TranslatableCharField, TranslatableTextField -@python_2_unicode_compatible class Category(models.Model): title = TranslatableCharField(_("Title"), max_length=200) @@ -22,7 +17,6 @@ class Category(models.Model): return self.title -@python_2_unicode_compatible class Entry(models.Model): title = TranslatableCharField( _("Title"), diff --git a/tests/test_app/tests.py b/tests/test_app/tests.py index 6bd6f8e..615580c 100644 --- a/tests/test_app/tests.py +++ b/tests/test_app/tests.py @@ -5,7 +5,7 @@ from __future__ import unicode_literals from django.test import TestCase from django.utils import translation -from main.test_app.models import Entry +from app.test_app.models import Entry translation.activate('de')