#35459: Case.extra is undocumented, untested, and can hide potential issues
-------------------------------------+-------------------------------------
     Reporter:  Baptiste Mispelon    |                    Owner:  Priyank
         Type:                       |  Panchal
  Cleanup/optimization               |                   Status:  assigned
    Component:  Database layer       |                  Version:  5.0
  (models, ORM)                      |
     Severity:  Normal               |               Resolution:
     Keywords:                       |             Triage Stage:  Accepted
    Has patch:  1                    |      Needs documentation:  0
  Needs tests:  0                    |  Patch needs improvement:  1
Easy pickings:  0                    |                    UI/UX:  0
-------------------------------------+-------------------------------------
Comment (by Tim Graham):

 I think `**extra` could be removed without a deprecation since it's
 undocumented and doesn't appear to be useful, however, `__init__()` would
 need `template=None` adding to its signature if we want to continue
 allowing that. (Currently, `template` is pulled from `extra`:
 `template_params.get("template", self.template)` in `as_sql()`.) I'm not
 sure if it's useful. As Jacob pointed out, it's undocumented and untested.
-- 
Ticket URL: <https://code.djangoproject.com/ticket/35459#comment:16>
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/010701929aeb4638-25cc2c8c-3928-4c7b-b548-a4d61d279068-000000%40eu-central-1.amazonses.com.

Reply via email to