summaryrefslogtreecommitdiffstats
path: root/welco/qualif/migrations
diff options
context:
space:
mode:
authorFrédéric Péters <fpeters@entrouvert.com>2015-10-09 12:01:59 (GMT)
committerFrédéric Péters <fpeters@entrouvert.com>2015-10-10 16:24:21 (GMT)
commit30e1c9cc4326d5256a006ebe7be895f1725a6cb3 (patch)
tree6a16525cc702cfe6a46480313d90931ed62039be /welco/qualif/migrations
parentd9100fabacb4faf5fc42e77b4dc37a77c31a668b (diff)
downloadwelco-30e1c9cc4326d5256a006ebe7be895f1725a6cb3.zip
welco-30e1c9cc4326d5256a006ebe7be895f1725a6cb3.tar.gz
welco-30e1c9cc4326d5256a006ebe7be895f1725a6cb3.tar.bz2
general: reorganize models in a simpler way
A source object (e.g. Mail) may now be attached to several Association objects, each one has a formdef_reference attribute (at first), and a formdata_id attribute (once submitted to wcs).
Diffstat (limited to 'welco/qualif/migrations')
-rw-r--r--welco/qualif/migrations/0005_auto_20151009_1110.py40
-rw-r--r--welco/qualif/migrations/0006_remove_association_user_id.py18
-rw-r--r--welco/qualif/migrations/0007_remove_association_triaged.py18
3 files changed, 76 insertions, 0 deletions
diff --git a/welco/qualif/migrations/0005_auto_20151009_1110.py b/welco/qualif/migrations/0005_auto_20151009_1110.py
new file mode 100644
index 0000000..8c83224
--- /dev/null
+++ b/welco/qualif/migrations/0005_auto_20151009_1110.py
@@ -0,0 +1,40 @@
+# -*- coding: utf-8 -*-
+from __future__ import unicode_literals
+
+from django.db import models, migrations
+
+
+class Migration(migrations.Migration):
+
+ dependencies = [
+ ('qualif', '0004_association_user_id'),
+ ]
+
+ operations = [
+ migrations.RemoveField(
+ model_name='association',
+ name='formdatas',
+ ),
+ migrations.DeleteModel(
+ name='FormdataReference',
+ ),
+ migrations.RemoveField(
+ model_name='association',
+ name='formdefs',
+ ),
+ migrations.DeleteModel(
+ name='FormdefReference',
+ ),
+ migrations.AddField(
+ model_name='association',
+ name='formdata_id',
+ field=models.CharField(max_length=250, null=True),
+ preserve_default=True,
+ ),
+ migrations.AddField(
+ model_name='association',
+ name='formdef_reference',
+ field=models.CharField(max_length=250, null=True),
+ preserve_default=True,
+ ),
+ ]
diff --git a/welco/qualif/migrations/0006_remove_association_user_id.py b/welco/qualif/migrations/0006_remove_association_user_id.py
new file mode 100644
index 0000000..49a22bb
--- /dev/null
+++ b/welco/qualif/migrations/0006_remove_association_user_id.py
@@ -0,0 +1,18 @@
+# -*- coding: utf-8 -*-
+from __future__ import unicode_literals
+
+from django.db import models, migrations
+
+
+class Migration(migrations.Migration):
+
+ dependencies = [
+ ('qualif', '0005_auto_20151009_1110'),
+ ]
+
+ operations = [
+ migrations.RemoveField(
+ model_name='association',
+ name='user_id',
+ ),
+ ]
diff --git a/welco/qualif/migrations/0007_remove_association_triaged.py b/welco/qualif/migrations/0007_remove_association_triaged.py
new file mode 100644
index 0000000..5d79a2a
--- /dev/null
+++ b/welco/qualif/migrations/0007_remove_association_triaged.py
@@ -0,0 +1,18 @@
+# -*- coding: utf-8 -*-
+from __future__ import unicode_literals
+
+from django.db import models, migrations
+
+
+class Migration(migrations.Migration):
+
+ dependencies = [
+ ('qualif', '0006_remove_association_user_id'),
+ ]
+
+ operations = [
+ migrations.RemoveField(
+ model_name='association',
+ name='triaged',
+ ),
+ ]