Fixed newsletter images
This commit is contained in:
parent
1d452f8ddf
commit
cce204b1fc
@ -28,7 +28,6 @@ class NewsletterAdmin(admin.ModelAdmin):
|
|||||||
def save_model(self, request, instance, form, change):
|
def save_model(self, request, instance, form, change):
|
||||||
user = request.user
|
user = request.user
|
||||||
instance = form.save(commit=False)
|
instance = form.save(commit=False)
|
||||||
instance.body = instance.body.replace('src="', 'src="' + settings.BASE_URL)
|
|
||||||
instance.creator = user
|
instance.creator = user
|
||||||
instance.save()
|
instance.save()
|
||||||
return instance
|
return instance
|
||||||
|
Loading…
Reference in New Issue
Block a user