Comment (by Mariusz Felisiak):
TBH, I think this example is no longer needed as we have `black` CI
builds. I'd remove it:
{{{#!diff
diff --git a/docs/internals/contributing/writing-code/coding-style.txt
b/docs/internals/contributing/writing-code/coding-style.txt
index 5b64e94b24..812be79c91 100644
--- a/docs/internals/contributing/writing-code/coding-style.txt
+++ b/docs/internals/contributing/writing-code/coding-style.txt
@@ -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"
}}}
--
Ticket URL: <https://code.djangoproject.com/ticket/34446#comment:2>
Django <https://code.djangoproject.com/>
The Web framework for perfectionists with deadlines.
Comment (by Paolo Melchiorre):
I agree with Mariusz
--
Ticket URL: <https://code.djangoproject.com/ticket/34446#comment:3>
* has_patch: 0 => 1
* stage: Accepted => Ready for checkin
Comment:
Replying to [comment:1 Mariusz Felisiak]:
> JiriKr, Would you like to prepare a patch?
Yes, I would like to. It's my first contribution to Django (hope it will
be correct).
Thank you for guidance, I prepared
[https://github.com/django/django/pull/16706 PR]
--
Ticket URL: <https://code.djangoproject.com/ticket/34446#comment:4>
* stage: Ready for checkin => Accepted
Comment:
Sorry, not sure if I can change Triage Stage.
--
Ticket URL: <https://code.djangoproject.com/ticket/34446#comment:5>
* stage: Accepted => Ready for checkin
Comment:
> Sorry, not sure if I can change Triage Stage.
You shouldn't change stage for your own tickets/PRs ;), but I can. Thanks!
--
Ticket URL: <https://code.djangoproject.com/ticket/34446#comment:6>
* status: new => closed
* resolution: => fixed
Comment:
In [changeset:"cfe563ffaf01d22343717176d96bfca0d05f60fb" cfe563ff]:
{{{
#!CommitTicketReference repository=""
revision="cfe563ffaf01d22343717176d96bfca0d05f60fb"
Fixed #34446 -- Removed unneeded and incorrect example in coding style
docs.
}}}
--
Ticket URL: <https://code.djangoproject.com/ticket/34446#comment:7>
Comment (by Mariusz Felisiak <felisiak.mariusz@…>):
In [changeset:"634acb5180600e6701ca73c271690d5666b796dd" 634acb5]:
{{{
#!CommitTicketReference repository=""
revision="634acb5180600e6701ca73c271690d5666b796dd"
[4.2.x] Fixed #34446 -- Removed unneeded and incorrect example in coding
style docs.
Backport of cfe563ffaf01d22343717176d96bfca0d05f60fb from main
}}}
--
Ticket URL: <https://code.djangoproject.com/ticket/34446#comment:8>