Disable `stream_field_magic` methods, as the API for those has changed

Unit tests work without them, but the `dummy_data` command possibly no
longer.
This commit is contained in:
Ramon Wenger 2023-12-07 14:42:15 +01:00
parent a2e85c337d
commit 6a2658051d
2 changed files with 2 additions and 2 deletions

View File

@ -383,5 +383,5 @@ class ContentBlockFactory(BasePageFactory):
@classmethod @classmethod
def create(cls, module, **kwargs): def create(cls, module, **kwargs):
cls.stream_field_magic(module, kwargs, "contents") # cls.stream_field_magic(module, kwargs, "contents")
return cls._generate(CREATE_STRATEGY, kwargs) return cls._generate(CREATE_STRATEGY, kwargs)

View File

@ -101,7 +101,7 @@ class RoomEntryFactory(factory.django.DjangoModelFactory):
@classmethod @classmethod
def create(cls, **kwargs): def create(cls, **kwargs):
cls.stream_field_magic(kwargs, "contents") # cls.stream_field_magic(kwargs, "contents")
return cls._generate(CREATE_STRATEGY, kwargs) return cls._generate(CREATE_STRATEGY, kwargs)