관리-도구
편집 파일: func_noerror_foreign_key_package.py
""" Checks that Pylint does not complain about ForeignKey pointing to model in module of models package """ # pylint: disable=missing-docstring from django.db import models class Book(models.Model): author = models.ForeignKey(to="pylint_django.tests.input.Author", on_delete=models.CASCADE) def get_author_name(self): return self.author.id