Changes between Initial Version and Version 2 of Ticket #5369


Ignore:
Timestamp:
Sep 9, 2007, 3:32:28 PM (17 years ago)
Author:
Adrian Holovaty
Comment:

Fixed formatting in description.

Legend:

Unmodified
Added
Removed
Modified
  • Ticket #5369 – Description

    initial v2  
    11After the refactoring of django.core.management, it was clear that having one universal set of options was less elegant than allowing each command to register just those options it allows. This refactoring keeps exactly the same functionality, but separates out the options. Any subclass of BaseCommand can provide its own option_list (with each option created using optparse.make_option). It inherits all the options in its class hierarchy. (One caveat: BaseCommand subclasses can only extend one superclass. I think handling multiple inheritance is possible, but I'm not sure how much harder it would be and can't think of a reasonable use case that would require it.)
    22
    3 There is a slight backwards incompatibility.{{{
    4 django-admin.py --option command
    5 }}} must now be written as {{{
    6 django-admin.py command --option
    7 }}}
     3There is a slight backwards incompatibility. {{{django-admin.py --option command}}} must now be written as {{{django-admin.py command --option}}}.
Back to Top