Django模型只是Python类,因此适用PEP-8中详细描述的Python命名约定.
例如:
If Django fails to pluralize the class name properly when creating the corresponding table, you can easily override the pluralization by setting a custom verbose_name_plural field in an inner META class. 例如:
class Story(models.Model):
...
class Meta:
verbose_name_plural = "stories"