#35758: Use keyword argument rather than a positional argument for on_delete in 
the
ForeignKey.on_delete docs.
-------------------------------------+-------------------------------------
     Reporter:  kay                  |                    Owner:  (none)
         Type:                       |                   Status:  new
  Cleanup/optimization               |
    Component:  Documentation        |                  Version:  5.1
     Severity:  Normal               |               Resolution:
     Keywords:  ForeignKey, code     |             Triage Stage:  Accepted
  examples                           |
    Has patch:  0                    |      Needs documentation:  0
  Needs tests:  0                    |  Patch needs improvement:  0
Easy pickings:  0                    |                    UI/UX:  0
-------------------------------------+-------------------------------------
Comment (by Claude Paroz):

 In the same vein as we required all argument of form fields to be keyword
 arguments, I'd also be in favor of having mostly keyword arguments for
 model fields. In my personal practice, only the verbose_name is used as
 first positional argument.
-- 
Ticket URL: <https://code.djangoproject.com/ticket/35758#comment:4>
Django <https://code.djangoproject.com/>
The Web framework for perfectionists with deadlines.

-- 
You received this message because you are subscribed to the Google Groups 
"Django updates" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-updates/01070191f0ac3b46-b7fce095-5774-41b0-a7a4-2b0dbecf5aa4-000000%40eu-central-1.amazonses.com.

Reply via email to