From c674948cb7f2c72506b93a393d01f2c7cd8d6efc Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Petr=20Dlouh=C3=BD?= Date: Tue, 23 Jan 2024 12:01:07 +0100 Subject: [PATCH] remove obsolete import --- categories/models.py | 9 ++------- 1 file changed, 2 insertions(+), 7 deletions(-) diff --git a/categories/models.py b/categories/models.py index 6be91328..8bb4d17d 100644 --- a/categories/models.py +++ b/categories/models.py @@ -1,18 +1,13 @@ """Category models.""" from functools import reduce +from django.contrib.contenttypes.fields import GenericForeignKey from django.contrib.contenttypes.models import ContentType from django.core.files.images import get_image_dimensions +from django.core.files.storage import get_storage_class from django.db import models from django.urls import reverse from django.utils.encoding import force_str - -try: - from django.contrib.contenttypes.fields import GenericForeignKey -except ImportError: - from django.contrib.contenttypes.generic import GenericForeignKey - -from django.core.files.storage import get_storage_class from django.utils.translation import gettext_lazy as _ from .base import CategoryBase