diff --git a/pretalx_pages/migrations/0001_create_page_model.py b/pretalx_pages/migrations/0001_create_page_model.py index daad36c..75a969e 100644 --- a/pretalx_pages/migrations/0001_create_page_model.py +++ b/pretalx_pages/migrations/0001_create_page_model.py @@ -5,7 +5,7 @@ import i18nfield.fields from django.db import migrations, models -import pretalx.common.models.mixins +import pretalx.common.mixins.models class Migration(migrations.Migration): @@ -54,6 +54,6 @@ class Migration(migrations.Migration): options={ "ordering": ["position", "title"], }, - bases=(pretalx.common.models.mixins.LogMixin, models.Model), + bases=(pretalx.common.mixins.models.LogMixin, models.Model), ), ] diff --git a/pretalx_pages/models.py b/pretalx_pages/models.py index bffcd27..34032b3 100644 --- a/pretalx_pages/models.py +++ b/pretalx_pages/models.py @@ -2,8 +2,8 @@ from django.db import models from django.utils.translation import gettext_lazy as _ from i18nfield.fields import I18nCharField, I18nTextField -from pretalx.common.models.mixins import LogMixin -from pretalx.common.text.phrases import phrases +from pretalx.common.mixins.models import LogMixin +from pretalx.common.phrases import phrases from pretalx.event.models import Event diff --git a/pretalx_pages/views.py b/pretalx_pages/views.py index 1fd34f8..a09f877 100644 --- a/pretalx_pages/views.py +++ b/pretalx_pages/views.py @@ -17,13 +17,13 @@ UpdateView, ) from i18nfield.forms import I18nModelForm +from pretalx.common.mixins.views import EventPermissionRequired 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