Fixed newsletter images

This commit is contained in:
Zakary Timson 2018-01-06 12:09:45 -05:00
parent 1d452f8ddf
commit cce204b1fc

View File

@ -28,7 +28,6 @@ class NewsletterAdmin(admin.ModelAdmin):
def save_model(self, request, instance, form, change):
user = request.user
instance = form.save(commit=False)
instance.body = instance.body.replace('src="', 'src="' + settings.BASE_URL)
instance.creator = user
instance.save()
return instance