[Django] #34446: Code style - incorrect Model Style

2 views
Skip to first unread message

Django

unread,
Mar 30, 2023, 2:43:20 AM3/30/23
to django-...@googlegroups.com
#34446: Code style - incorrect Model Style
-----------------------------------------+------------------------
Reporter: JiriKr | Owner: nobody
Type: Bug | Status: new
Component: Documentation | Version: dev
Severity: Normal | Keywords:
Triage Stage: Unreviewed | Has patch: 0
Needs documentation: 0 | Needs tests: 0
Patch needs improvement: 0 | Easy pickings: 0
UI/UX: 0 |
-----------------------------------------+------------------------
https://docs.djangoproject.com/en/dev/internals/contributing/writing-code
/coding-style/#model-style

In dev documentation version there is no difference between ''Do this:''
and ''Don’t do this:'' in Meta section.

{{{
class Person(models.Model):
first_name = models.CharField(max_length=20)
last_name = models.CharField(max_length=40)

class Meta:
verbose_name_plural = "people"
}}}

In 4.1 version it is correct. Related to
https://code.djangoproject.com/ticket/34140 .

--
Ticket URL: <https://code.djangoproject.com/ticket/34446>
Django <https://code.djangoproject.com/>
The Web framework for perfectionists with deadlines.

Reply all
Reply to author
Forward
0 new messages