mirror of
https://github.com/DMOJ/online-judge.git
synced 2024-11-25 16:32:37 +08:00
Improve import locations
This commit is contained in:
parent
7294d223a2
commit
138ce7fc99
@ -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
|
||||
|
@ -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']
|
||||
|
||||
|
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user