From 5db08151fa50f011e5ce0f2817b3d1d00eeb0757 Mon Sep 17 00:00:00 2001 From: grumbler Date: Fri, 12 Sep 2014 11:26:57 +0400 Subject: [PATCH] disable add_message for the case https://github.com/lamby/django-lint/issues/7 --- django_lint/AstCheckers/model_fields.py | 1 + setup.py | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/django_lint/AstCheckers/model_fields.py b/django_lint/AstCheckers/model_fields.py index 915d1aa..74caa3e 100644 --- a/django_lint/AstCheckers/model_fields.py +++ b/django_lint/AstCheckers/model_fields.py @@ -147,6 +147,7 @@ def visit_callfunc(self, node): self.add_message('W6000', node=node, args=(assname,)) if val.name == 'CharField' and \ + options['max_length'] != astng.YES and \ options['max_length'] > self.config.max_charfield_length: self.add_message('W6007', node=node, args=( assname, diff --git a/setup.py b/setup.py index a5e9620..a34c1e7 100755 --- a/setup.py +++ b/setup.py @@ -25,7 +25,7 @@ ], author='Chris Lamb', author_email='chris@chris-lamb.co.uk', - version='0.0.1', + version='0.0.2', ) try: