mirror of
https://github.com/django-helpdesk/django-helpdesk.git
synced 2025-06-01 23:45:43 +02:00
Merge pull request #707 from JayTurnr/patch-1
AttributeError: 'Command' object has no attribute 'option_list'
This commit is contained in:
commit
9bdd7c60f7
@ -32,7 +32,7 @@ class Command(BaseCommand):
|
|||||||
def __init__(self):
|
def __init__(self):
|
||||||
BaseCommand.__init__(self)
|
BaseCommand.__init__(self)
|
||||||
|
|
||||||
self.option_list += (
|
self.option_list = (
|
||||||
make_option(
|
make_option(
|
||||||
'--queues',
|
'--queues',
|
||||||
help='Queues to include (default: all). Use queue slugs'),
|
help='Queues to include (default: all). Use queue slugs'),
|
||||||
@ -48,9 +48,9 @@ class Command(BaseCommand):
|
|||||||
queue_slugs = None
|
queue_slugs = None
|
||||||
queues = []
|
queues = []
|
||||||
|
|
||||||
if options['verboseescalation']:
|
if 'verboseescalation' in options:
|
||||||
verbose = True
|
verbose = True
|
||||||
if options['queues']:
|
if 'queues' in options:
|
||||||
queue_slugs = options['queues']
|
queue_slugs = options['queues']
|
||||||
|
|
||||||
if queue_slugs is not None:
|
if queue_slugs is not None:
|
||||||
|
Loading…
x
Reference in New Issue
Block a user