Add support for storing the subject and "from" value of an email as metadata.

This commit is contained in:
Roberto Rosario
2015-09-30 20:20:27 -04:00
parent 6faf4b0f2a
commit 3d0c9485d0
4 changed files with 122 additions and 26 deletions
@@ -0,0 +1,27 @@
# -*- coding: utf-8 -*-
from __future__ import unicode_literals
from django.db import models, migrations
class Migration(migrations.Migration):
dependencies = [
('metadata', '0007_auto_20150918_0800'),
('sources', '0008_auto_20150815_0351'),
]
operations = [
migrations.AddField(
model_name='emailbasemodel',
name='from_metadata_type',
field=models.ForeignKey(related_name='email_from', blank=True, to='metadata.MetadataType', help_text='Select a metadata type valid for the document type selected in which to store the email\'s "from" value.', null=True, verbose_name='From metadata type'),
preserve_default=True,
),
migrations.AddField(
model_name='emailbasemodel',
name='subject_metadata_type',
field=models.ForeignKey(related_name='email_subject', blank=True, to='metadata.MetadataType', help_text="Select a metadata type valid for the document type selected in which to store the email's subject.", null=True, verbose_name='Subject metadata type'),
preserve_default=True,
),
]