관리-도구
편집 파일: func_noerror_model_unicode_lambda.py
""" Ensures that django models without a __unicode__ method are flagged """ # pylint: disable=missing-docstring,wrong-import-position from django.db import models class SomeModel(models.Model): something = models.CharField(max_length=255) __unicode__ = lambda s: str(s.something) # noqa: E731