mirror of
https://github.com/django/django.git
synced 2025-09-26 12:09:19 +00:00
Fixed #34446 -- Removed unneeded and incorrect example in coding style docs.
This commit is contained in:
parent
7330408ac3
commit
cfe563ffaf
1 changed files with 0 additions and 9 deletions
|
@ -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"
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue