Skip to content

Commit

Permalink
Improve import locations
Browse files Browse the repository at this point in the history
  • Loading branch information
int-y1 authored and kiritofeng committed Aug 26, 2023
1 parent 7294d22 commit 138ce7f
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 4 deletions.
3 changes: 2 additions & 1 deletion judge/admin/interface.py
Original file line number Diff line number Diff line change
@@ -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
Expand Down
3 changes: 2 additions & 1 deletion judge/highlight_code.py
Original file line number Diff line number Diff line change
@@ -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']

Expand Down
4 changes: 2 additions & 2 deletions judge/views/contests.py
Original file line number Diff line number Diff line change
Expand Up @@ -23,8 +23,8 @@
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
Expand Down

0 comments on commit 138ce7f

Please sign in to comment.