fix migration
This commit is contained in:
parent
fdf2974ee5
commit
d424704cec
|
|
@ -9,6 +9,7 @@ def copy_image_links(apps, schemaeditor):
|
|||
for news in News.objects.all():
|
||||
if news.image:
|
||||
news.image_url = f'{settings.SCHEMA_URI}://{settings.DOMAIN_URI}{news.image.image.url}'
|
||||
news.save()
|
||||
|
||||
|
||||
class Migration(migrations.Migration):
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user