kopia lustrzana https://github.com/wagtail/wagtail
Fix remaining imports deprecated in Wagtail 3.0
rodzic
03aa7a8f66
commit
c6de0ec067
|
@ -258,7 +258,7 @@ To add the tag interface, add the following block of code to a `wagtail_hooks.py
|
|||
|
||||
```python
|
||||
from wagtail.contrib.modeladmin.options import ModelAdmin, modeladmin_register
|
||||
from wagtail.admin.edit_handlers import FieldPanel
|
||||
from wagtail.admin.panels import FieldPanel
|
||||
from taggit.models import Tag
|
||||
|
||||
|
||||
|
|
|
@ -1,9 +1,9 @@
|
|||
from django.test import TestCase
|
||||
from django.urls import reverse
|
||||
|
||||
from wagtail.core.models import Page
|
||||
from wagtail.models import Page
|
||||
from wagtail.test.testapp.models import BusinessChild, BusinessIndex, SimplePage
|
||||
from wagtail.tests.utils import WagtailTestUtils
|
||||
from wagtail.test.utils import WagtailTestUtils
|
||||
|
||||
|
||||
class TestPageReorder(TestCase, WagtailTestUtils):
|
||||
|
|
|
@ -1,7 +1,7 @@
|
|||
from django.test import RequestFactory, TestCase, override_settings
|
||||
|
||||
from wagtail.admin.views.home import UpgradeNotificationPanel
|
||||
from wagtail.tests.utils import WagtailTestUtils
|
||||
from wagtail.test.utils import WagtailTestUtils
|
||||
|
||||
|
||||
class TestUpgradeNotificationPanel(TestCase, WagtailTestUtils):
|
||||
|
|
|
@ -2,7 +2,7 @@ from django.test import RequestFactory, TestCase, override_settings
|
|||
from django.urls import reverse
|
||||
|
||||
from wagtail.admin.views.home import WhatsNewInWagtailVersionPanel
|
||||
from wagtail.tests.utils import WagtailTestUtils
|
||||
from wagtail.test.utils import WagtailTestUtils
|
||||
from wagtail.users.models import UserProfile
|
||||
|
||||
|
||||
|
|
Ładowanie…
Reference in New Issue