Backport more code
This commit is contained in:
parent
6a51052b53
commit
a1f6bfc373
|
|
@ -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':
|
||||
|
|
|
|||
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Reference in New Issue