Skip to content

Commit

Permalink
Fix management command to work with Django 1.10
Browse files Browse the repository at this point in the history
  • Loading branch information
paltman committed Aug 28, 2016
1 parent f1b41fc commit 33a8f1f
Showing 1 changed file with 4 additions and 7 deletions.
11 changes: 4 additions & 7 deletions pinax_theme_bootstrap/management/commands/copy_from_theme.py
Expand Up @@ -3,8 +3,6 @@
import os
import shutil

from optparse import make_option

from django.conf import settings
from django.core.management.base import BaseCommand

Expand All @@ -24,14 +22,13 @@ def copy(src, dest):

class Command(BaseCommand):

option_list = BaseCommand.option_list + (
make_option(
def add_arguments(self, parser):
parser.add_argument(
"--path",
type="string",
type=str,
dest="path",
help="a glob wildcard to copy templates from"
),
)
)

def handle(self, *args, **options):
path = options["path"]
Expand Down

0 comments on commit 33a8f1f

Please sign in to comment.