1
0
mirror of https://github.com/django/django.git synced 2025-10-24 22:26:08 +00:00

[4.2.x] Fixed #34446 -- Removed unneeded and incorrect example in coding style docs.

Backport of cfe563ffaf from main
This commit is contained in:
JiriKr
2023-03-30 10:54:37 +02:00
committed by Mariusz Felisiak
parent 47530bfb20
commit 634acb5180

View File

@@ -279,15 +279,6 @@ Model style
Don't do this:: Don't do this::
class Person(models.Model):
first_name = models.CharField(max_length=20)
last_name = models.CharField(max_length=40)
class Meta:
verbose_name_plural = "people"
Don't do this, either::
class Person(models.Model): class Person(models.Model):
class Meta: class Meta:
verbose_name_plural = "people" verbose_name_plural = "people"