#33430: Calling command via `call_command` with option that is `required` and 
has
set `dest` leads to an error
-------------------------------------+-------------------------------------
     Reporter:  Adam Mičuda          |                    Owner:  ravi
                                     |  kunwar
         Type:  Bug                  |                   Status:  closed
    Component:  Core (Management     |                  Version:  3.2
  commands)                          |
     Severity:  Normal               |               Resolution:  invalid
     Keywords:                       |             Triage Stage:
                                     |  Unreviewed
    Has patch:  0                    |      Needs documentation:  0
  Needs tests:  0                    |  Patch needs improvement:  0
Easy pickings:  0                    |                    UI/UX:  0
-------------------------------------+-------------------------------------

Comment (by Mariusz Felisiak):

 > But if the option is required the first call is not possible. I believe
 the behaviour should be consistent regardless of whether the option is
 required or not. What do you think?

 The current behavior is consistent. In the first call, i.e.
 {{{
 call_command('bug_report', **{ 'from': '2022-01-11' })
 }}}
 `from` is simply ignored, so an error is raised only when it's required.

-- 
Ticket URL: <https://code.djangoproject.com/ticket/33430#comment:5>
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/064.4788d53c28e85c42882b834cfadf75a6%40djangoproject.com.

Reply via email to