관리-도구
편집 파일: func_noerror_string_foreignkey.py
""" Checks that PyLint correctly handles string foreign keys https://github.com/PyCQA/pylint-django/issues/243 """ # pylint: disable=missing-docstring, hard-coded-auth-user from django.db import models class Book(models.Model): author = models.ForeignKey("test_app.Author", models.CASCADE) user = models.ForeignKey("auth.User", models.PROTECT)