summaryrefslogtreecommitdiff
path: root/tests/model_forms/models.py
diff options
context:
space:
mode:
authorTim Graham <timograham@gmail.com>2016-04-07 22:04:45 -0400
committerTim Graham <timograham@gmail.com>2016-04-08 10:12:33 -0400
commit92053acbb9160862c3e743a99ed8ccff8d4f8fd6 (patch)
tree50e7fd28a650f0e2352cf94f92e5a66d28a81988 /tests/model_forms/models.py
parentdf8d8d4292684d6ffa7474f1e201aed486f02b53 (diff)
Fixed E128 flake8 warnings in tests/.
Diffstat (limited to 'tests/model_forms/models.py')
-rw-r--r--tests/model_forms/models.py13
1 files changed, 8 insertions, 5 deletions
diff --git a/tests/model_forms/models.py b/tests/model_forms/models.py
index 4688720ac0..2c3ff26cbe 100644
--- a/tests/model_forms/models.py
+++ b/tests/model_forms/models.py
@@ -388,13 +388,16 @@ class ColourfulItem(models.Model):
class CustomErrorMessage(models.Model):
- name1 = models.CharField(max_length=50,
+ name1 = models.CharField(
+ max_length=50,
validators=[validators.validate_slug],
- error_messages={'invalid': 'Model custom error message.'})
-
- name2 = models.CharField(max_length=50,
+ error_messages={'invalid': 'Model custom error message.'},
+ )
+ name2 = models.CharField(
+ max_length=50,
validators=[validators.validate_slug],
- error_messages={'invalid': 'Model custom error message.'})
+ error_messages={'invalid': 'Model custom error message.'},
+ )
def clean(self):
if self.name1 == 'FORBIDDEN_VALUE':