Fixed #18634 -- Don't escape variables in the context for startproject/startapp.

The & symbols which can come up in the secret key were
being escaped to &.
This commit is contained in:
Marc Tamlyn 2012-07-16 23:26:31 +01:00 committed by Florian Apolloner
parent 59d99772f0
commit a875f612e0
4 changed files with 31 additions and 1 deletions

View file

@ -0,0 +1,11 @@
from optparse import make_option
from django.core.management.commands.startproject import Command as BaseCommand
class Command(BaseCommand):
option_list = BaseCommand.option_list + (
make_option('--extra',
action='store', dest='extra',
help='An arbitrary extra value passed to the context'),
)