Django-compressor: Broken in 1.10 due to option_list (Deprecated Django 1.8)

Created on 2 Aug 2016  ·  4Comments  ·  Source: django-compressor/django-compressor

django_compressor appears broken in 1.10 due to the behaviour of the management command requiring BaseCommand.option_list. This has been deprecated since Django 1.8, and consequently breaks on running in 1.10:

    class Command(BaseCommand):
  File "/usr/local/lib/python3.5/site-packages/compressor/management/commands/compress.py", line 39, in Command
    option_list = BaseCommand.option_list + (
AttributeError: type object 'BaseCommand' has no attribute 'option_list'

BaseCommand.add_arguments() should be used instead.

Most helpful comment

I'll look into that this week.

All 4 comments

This was fixed and merged at e86ccfd29c3a4695f315637295c3d5ab20484e6c, but doesn't appear to have been released on PyPI

Any ETA for a new release with this fix included?

I'll look into that this week.

Was this page helpful?
0 / 5 - 0 ratings

Related issues

simonwiles picture simonwiles  ·  6Comments

amosjyng picture amosjyng  ·  5Comments

dasloss picture dasloss  ·  6Comments

camilonova picture camilonova  ·  7Comments

gh640 picture gh640  ·  10Comments