Skip to content

Commit

Permalink
Optimise imports
Browse files Browse the repository at this point in the history
  • Loading branch information
rixx committed Oct 9, 2024
1 parent e6fbd59 commit 6ee5914
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions pretalx_pages/views.py
Original file line number Diff line number Diff line change
Expand Up @@ -17,12 +17,6 @@
UpdateView,
)
from i18nfield.forms import I18nModelForm
from pretalx.common.templatetags.rich_text import (
ALLOWED_ATTRIBUTES,
ALLOWED_PROTOCOLS,
ALLOWED_TAGS,
md,
)
from pretalx.common.views.mixins import EventPermissionRequired

from .models import Page
Expand Down Expand Up @@ -238,6 +232,12 @@ def get_context_data(self, **kwargs):
ctx = super().get_context_data()
page = self.get_page()
ctx["page_title"] = page.title
from pretalx.common.templatetags.rich_text import (
ALLOWED_ATTRIBUTES,
ALLOWED_PROTOCOLS,
ALLOWED_TAGS,
md,
)

attributes = dict(ALLOWED_ATTRIBUTES)
attributes["a"] = ["href", "title", "target", "class"]
Expand Down

0 comments on commit 6ee5914

Please sign in to comment.