관리-도구
편집 파일: func_noerror_unicode_py2_compatible.py
""" Ensures that no '__unicode__ missing' warning is emitted if the Django python3/2 compatability decorator is used See https://github.com/PyCQA/pylint-django/issues/10 """ from django.db import models # pylint: disable=missing-docstring from six import python_2_unicode_compatible @python_2_unicode_compatible class ModelName(models.Model): name = models.CharField(max_length=200) def __str__(self): return self.name