Skip to content

Instantly share code, notes, and snippets.

View sanajaved7's full-sized avatar
🎨

Sana Javed sanajaved7

🎨
View GitHub Profile
from wagtail.wagtailembeds.models import Embed
embeds = Embed.objects.all()
# at index 4 was the particular embed object I wanted to change
embeds[4].html = embeds[4].html.replace('http:', 'https:')
embeds[4].save()