[PATCH] migrations: Add missing migration
Stephen Finucane
stephen at that.guru
Mon Mar 26 03:17:15 AEDT 2018
Add a migration that was missed in an earlier change.
Signed-off-by: Stephen Finucane <stephen at 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
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]),
+ ),
+ ]
--
2.14.3
More information about the Patchwork
mailing list