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