Backport more code

This commit is contained in:
Ramon Wenger 2022-01-25 15:31:55 +01:00
parent 6a51052b53
commit a1f6bfc373
2 changed files with 6 additions and 2 deletions

View File

@ -106,7 +106,9 @@ class ContentBlock(StrictHierarchyPage):
)
def save(self, *args, **kwargs):
for data in self.contents.raw_data:
# todo: @django3-update
#for data in self.contents.raw_data:
for data in self.contents.stream_data:
block_type, value = get_type_and_value(data)
if block_type == 'survey':

View File

@ -7,7 +7,9 @@ from django.conf import settings
from django.contrib.auth import get_user_model
from factory.django import ImageField, FileField
from faker import Faker
from wagtail.documents import get_document_model
# todo: @django3-update
#from wagtail.documents import get_document_model
from wagtail.documents.models import get_document_model
from wagtail.images import get_image_model
from users.models import Role, UserRole