Improve import locations

This commit is contained in:
int-y1 2023-08-25 21:39:37 -04:00 committed by Roger Fu
parent 7294d223a2
commit 138ce7fc99
3 changed files with 6 additions and 4 deletions

View File

@ -1,6 +1,7 @@
from django.contrib import admin
from django.contrib.auth.models import User
from django.contrib.flatpages.admin import FlatPageAdmin as OldFlatPageAdmin, FlatpageForm as OldFlatpageForm
from django.contrib.flatpages.admin import FlatPageAdmin as OldFlatPageAdmin
from django.contrib.flatpages.forms import FlatpageForm as OldFlatpageForm
from django.forms import ModelForm
from django.urls import NoReverseMatch, reverse, reverse_lazy
from django.utils.html import format_html

View File

@ -1,4 +1,5 @@
from django.utils.html import format_html, mark_safe
from django.utils.html import format_html
from django.utils.safestring import mark_safe
__all__ = ['highlight_code']

View File

@ -23,8 +23,8 @@ from django.utils.html import format_html
from django.utils.safestring import mark_safe
from django.utils.timezone import make_aware
from django.utils.translation import gettext as _, gettext_lazy
from django.views.generic import ListView, TemplateView
from django.views.generic.detail import DetailView, SingleObjectMixin, View
from django.views.generic import ListView, TemplateView, View
from django.views.generic.detail import DetailView, SingleObjectMixin
from django.views.generic.list import BaseListView
from icalendar import Calendar as ICalendar, Event
from reversion import revisions