Adjust image format in dummy data
This commit is contained in:
parent
bf4861f595
commit
98d29e83e7
|
|
@ -58,7 +58,7 @@ class BasicKnowledgeBlockFactory(wagtail_factories.StructBlockFactory):
|
||||||
|
|
||||||
class ImageUrlBlockBlockFactory(wagtail_factories.StructBlockFactory):
|
class ImageUrlBlockBlockFactory(wagtail_factories.StructBlockFactory):
|
||||||
title = fake_title()
|
title = fake_title()
|
||||||
url = factory.LazyAttribute(lambda x: 'https://picsum.photos/200/300/?random')
|
url = factory.LazyAttribute(lambda x: 'https://picsum.photos/300/200/?random')
|
||||||
|
|
||||||
class Meta:
|
class Meta:
|
||||||
model = ImageUrlBlock
|
model = ImageUrlBlock
|
||||||
|
|
@ -66,7 +66,7 @@ class ImageUrlBlockBlockFactory(wagtail_factories.StructBlockFactory):
|
||||||
|
|
||||||
class LinkBlockFactory(wagtail_factories.StructBlockFactory):
|
class LinkBlockFactory(wagtail_factories.StructBlockFactory):
|
||||||
text = fake_title()
|
text = fake_title()
|
||||||
url = factory.LazyAttribute(lambda x: 'https://picsum.photos/200/300/?random')
|
url = factory.LazyAttribute(lambda x: 'https://picsum.photos/300/200/?random')
|
||||||
|
|
||||||
class Meta:
|
class Meta:
|
||||||
model = LinkBlock
|
model = LinkBlock
|
||||||
|
|
|
||||||
|
|
@ -25,7 +25,7 @@ data = [
|
||||||
'type': 'image_url',
|
'type': 'image_url',
|
||||||
'value': {
|
'value': {
|
||||||
'title': 'Ein Bild sagt mehr als 1000 Worte',
|
'title': 'Ein Bild sagt mehr als 1000 Worte',
|
||||||
'url': 'https://picsum.photos/200/300/?random'
|
'url': 'https://picsum.photos/300/200/?random'
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
|
|
@ -51,7 +51,7 @@ data = [
|
||||||
'type': 'image_url',
|
'type': 'image_url',
|
||||||
'value': {
|
'value': {
|
||||||
'title': 'Ein Bild sagt mehr als 1000 Worte',
|
'title': 'Ein Bild sagt mehr als 1000 Worte',
|
||||||
'url': 'https://picsum.photos/200/300/?random'
|
'url': 'https://picsum.photos/300/200/?random'
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
|
|
@ -77,7 +77,7 @@ data = [
|
||||||
'type': 'image_url',
|
'type': 'image_url',
|
||||||
'value': {
|
'value': {
|
||||||
'title': 'Ein Bild sagt mehr als 1000 Worte',
|
'title': 'Ein Bild sagt mehr als 1000 Worte',
|
||||||
'url': 'https://picsum.photos/200/300/?random'
|
'url': 'https://picsum.photos/300/200/?random'
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
|
|
@ -97,7 +97,7 @@ data = [
|
||||||
'type': 'image_url',
|
'type': 'image_url',
|
||||||
'value': {
|
'value': {
|
||||||
'title': 'Ein Bild sagt mehr als 1000 Worte',
|
'title': 'Ein Bild sagt mehr als 1000 Worte',
|
||||||
'url': 'https://picsum.photos/200/300/?random'
|
'url': 'https://picsum.photos/300/200/?random'
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
|
|
@ -129,7 +129,7 @@ data = [
|
||||||
'type': 'image_url',
|
'type': 'image_url',
|
||||||
'value': {
|
'value': {
|
||||||
'title': 'Ein Bild sagt mehr als 1000 Worte',
|
'title': 'Ein Bild sagt mehr als 1000 Worte',
|
||||||
'url': 'https://picsum.photos/200/300/?random'
|
'url': 'https://picsum.photos/300/200/?random'
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
|
|
@ -155,7 +155,7 @@ data = [
|
||||||
'type': 'image_url',
|
'type': 'image_url',
|
||||||
'value': {
|
'value': {
|
||||||
'title': 'Ein Bild sagt mehr als 1000 Worte',
|
'title': 'Ein Bild sagt mehr als 1000 Worte',
|
||||||
'url': 'https://picsum.photos/200/300/?random'
|
'url': 'https://picsum.photos/300/200/?random'
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue