diff mbox series

migrations: Add missing migration

Message ID 20180325161715.11736-1-stephen@that.guru
State Accepted
Headers show
Series migrations: Add missing migration | expand

Commit Message

Stephen Finucane March 25, 2018, 4:17 p.m. UTC
Add a migration that was missed in an earlier change.

Signed-off-by: Stephen Finucane <stephen@that.guru>
Fixes: 0f25d8a15 ("Add validation for regular expressions")
---
 patchwork/migrations/0025_add_regex_validators.py | 25 +++++++++++++++++++++++
 1 file changed, 25 insertions(+)
 create mode 100644 patchwork/migrations/0025_add_regex_validators.py

Comments

Stephen Finucane March 25, 2018, 4:18 p.m. UTC | #1
On Sun, 2018-03-25 at 17:17 +0100, Stephen Finucane wrote:
> Add a migration that was missed in an earlier change.
> 
> Signed-off-by: Stephen Finucane <stephen@that.guru>
> Fixes: 0f25d8a15 ("Add validation for regular expressions")

Gone right ahead and applied this.

Stephen
diff mbox series

Patch

diff --git a/patchwork/migrations/0025_add_regex_validators.py b/patchwork/migrations/0025_add_regex_validators.py
new file mode 100644
index 00000000..adbc66d1
--- /dev/null
+++ b/patchwork/migrations/0025_add_regex_validators.py
@@ -0,0 +1,25 @@ 
+# -*- coding: utf-8 -*-
+from __future__ import unicode_literals
+
+from django.db import migrations, models
+import patchwork.models
+
+
+class Migration(migrations.Migration):
+
+    dependencies = [
+        ('patchwork', '0024_patch_patch_project'),
+    ]
+
+    operations = [
+        migrations.AlterField(
+            model_name='project',
+            name='subject_match',
+            field=models.CharField(blank=True, default=b'', help_text=b'Regex to match the subject against if only part of emails sent to the list belongs to this project. Will be used with IGNORECASE and MULTILINE flags. If rules for more projects match the first one returned from DB is chosen; empty field serves as a default for every email which has no other match.', max_length=64, validators=[patchwork.models.validate_regex_compiles]),
+        ),
+        migrations.AlterField(
+            model_name='tag',
+            name='pattern',
+            field=models.CharField(help_text=b'A simple regex to match the tag in the content of a message. Will be used with MULTILINE and IGNORECASE flags. eg. ^Acked-by:', max_length=50, validators=[patchwork.models.validate_regex_compiles]),
+        ),
+    ]