train spam on state change to 'closed_spam'
This commit is contained in:
parent
a6a8b0defe
commit
b65f255cf8
2 changed files with 3 additions and 1 deletions
|
@ -13,8 +13,8 @@ class Migration(migrations.Migration):
|
|||
Email = apps.get_model('mail', 'Email')
|
||||
for email in Email.objects.all():
|
||||
raw_content = email.raw
|
||||
print("raw_content size:", len(raw_content))
|
||||
email.raw_file = ContentFile(raw_content)
|
||||
email.raw = None
|
||||
email.save()
|
||||
|
||||
operations = [
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue