#34765: call_command reuses already loaded command causing stale class variable
value usage
-------------------------------------+-------------------------------------
     Reporter:  MaziyarMK            |                    Owner:  nobody
         Type:  Bug                  |                   Status:  closed
    Component:  Core (Management     |                  Version:  4.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
-------------------------------------+-------------------------------------
Changes (by Natalia Bidart):

 * keywords:  call_command =>


Comment:

 Hello,

 Thank you for report, though the issue you are describing is how class
 variables work in Python. This is not a Django specific issue, perhaps you
 should consider storing you state-data as an instance variable instead.

 If you need further help, please consider using any of the user support
 channels from [https://docs.djangoproject.com/en/dev/faq/help/#how-
 do-i-do-x-why-doesn-t-y-work-where-can-i-go-to-get-help this link].

-- 
Ticket URL: <https://code.djangoproject.com/ticket/34765#comment:3>
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/01070189c1c34943-ac68f3f6-110e-4f34-a472-0c0a7277a043-000000%40eu-central-1.amazonses.com.

Reply via email to