#24620: showmigrations broken in Django 1.8
-------------------------------------+-------------------------------------
     Reporter:  maraujop             |                    Owner:  nobody
         Type:  Bug                  |                   Status:  closed
    Component:  Core (Management     |                  Version:  1.8
  commands)                          |               Resolution:
     Severity:  Normal               |  worksforme
     Keywords:  showmigrations       |             Triage Stage:
                                     |  Unreviewed
    Has patch:  0                    |      Needs documentation:  0
  Needs tests:  0                    |  Patch needs improvement:  0
Easy pickings:  0                    |                    UI/UX:  0
-------------------------------------+-------------------------------------

Comment (by maraujop):

 I've been reading some of the commits that moved from optparse to argparse
 Django's command system:
 
https://github.com/django/django/commit/856863860352aa1f0288e6c9168a0e423c4f5184
 
https://github.com/django/django/commit/f17b24e407385eb18651bf023a187347aa9c1f75

 To be honest if `option_list` has been replaced by  `add_arguments`
 method. And in
 `BaseCommand` `add_arguments` is called only for new system as you can see
 here:
 
https://github.com/django/django/blob/0ed7d155635da9f79d4dd67e4889087d3673c6da/django/core/management/base.py#L308

 This change is in reality backwards incompatible (which is not Django's
 usual philosophy), although the door stays open for still being backwards
 compatible, but it implies author's work. In my understanding usually
 Django gives a time gap to adjust apps in situations like this.

 As django-configurations is still using optparse and is injecting an
 option for all commands, which sets the right configuration to use. It is
 breaking all Django commands.

--
Ticket URL: <https://code.djangoproject.com/ticket/24620#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 post to this group, send email to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-updates/066.460a7a78135c0855693b21542e269894%40djangoproject.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to