# Path: django_linter/__pkginfo__.py
# BASE_ID = 52


from pylint.checkers import BaseChecker
from pylint.interfaces import IAstroidChecker
from pylint.checkers.utils import safe_infer
from astroid import YES, AssName, Keyword, Return, Getattr, Instance, Name
from ..__pkginfo__ import BASE_ID
from __future__ import (absolute_import, division,
                        print_function, unicode_literals)




class ModelsChecker(BaseChecker):
    __implements__ = IAstroidChecker

    name = 'models'
    msgs = {
        'W%s41' % BASE_ID: (
            'Text field is nullable: %s',
            'nullable-text-field',
            'Used when text field has null=True.'),
        'W%s42' % BASE_ID: (
            'Money related field is float: %s',
            'float-money-field',
            'Used when money related field uses FloatField.'),

# Path: django_linter/__pkginfo__.py
# BASE_ID = 52


# Path: django_linter/checkers/models.py
from pylint.checkers import BaseChecker
from pylint.interfaces import IAstroidChecker
from pylint.checkers.utils import safe_infer
from astroid import YES, AssName, Keyword, Return, Getattr, Instance, Name
from ..__pkginfo__ import BASE_ID

from __future__ import (absolute_import, division,
                        print_function, unicode_literals)




class ModelsChecker(BaseChecker):
    __implements__ = IAstroidChecker

    name = 'models'
    msgs = {
        'W%s41' % BASE_ID: (
            'Text field is nullable: %s',
            'nullable-text-field',
            'Used when text field has null=True.'),
        'W%s42' % BASE_ID: (
            'Money related field is float: %s',
            'float-money-field',
            'Used when money related field uses FloatField.'),

        'W%s43' % BASE_ID: (