summaryrefslogtreecommitdiff
path: root/patchwork/migrations
diff options
context:
space:
mode:
authorStephen Finucane <stephen.finucane@intel.com>2016-03-25 17:29:30 +0000
committerStephen Finucane <stephen.finucane@intel.com>2016-04-01 15:52:10 +0100
commit8aae263a332465d1673ec65c6f2a891b27417d51 (patch)
tree0b05ed58ca5a33b0c1fb7b067d82450a3ea47101 /patchwork/migrations
parent86172ccc161b44d68fcbc734f642644c8e1be84a (diff)
downloadpatchwork-8aae263a332465d1673ec65c6f2a891b27417d51.tar
patchwork-8aae263a332465d1673ec65c6f2a891b27417d51.tar.gz
models: Add Cover Letter support
Cover letters contain useful information that should not be discarded. Store them. This is a prerequisite of series support. Signed-off-by: Stephen Finucane <stephen.finucane@intel.com>
Diffstat (limited to 'patchwork/migrations')
-rw-r--r--patchwork/migrations/0012_add_coverletter_model.py24
1 files changed, 24 insertions, 0 deletions
diff --git a/patchwork/migrations/0012_add_coverletter_model.py b/patchwork/migrations/0012_add_coverletter_model.py
new file mode 100644
index 0000000..ec0f785
--- /dev/null
+++ b/patchwork/migrations/0012_add_coverletter_model.py
@@ -0,0 +1,24 @@
+# -*- coding: utf-8 -*-
+from __future__ import unicode_literals
+
+from django.db import migrations, models
+
+
+class Migration(migrations.Migration):
+
+ dependencies = [
+ ('patchwork', '0011_remove_temp_fields'),
+ ]
+
+ operations = [
+ migrations.CreateModel(
+ name='CoverLetter',
+ fields=[
+ ('submission_ptr', models.OneToOneField(parent_link=True, auto_created=True, primary_key=True, serialize=False, to='patchwork.Submission')),
+ ],
+ options={
+ 'abstract': False,
+ },
+ bases=('patchwork.submission',),
+ ),
+ ]