Skip to content

Commit

Permalink
[4.2.x] Fixed #34446 -- Removed unneeded and incorrect example in cod…
Browse files Browse the repository at this point in the history
…ing style docs.

Backport of cfe563f from main
  • Loading branch information
JiriKr authored and felixxm committed Mar 30, 2023
1 parent 47530bf commit 634acb5
Showing 1 changed file with 0 additions and 9 deletions.
9 changes: 0 additions & 9 deletions docs/internals/contributing/writing-code/coding-style.txt
Original file line number Diff line number Diff line change
Expand Up @@ -279,15 +279,6 @@ Model style

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 Meta:
verbose_name_plural = "people"
Expand Down

0 comments on commit 634acb5

Please sign in to comment.