Skip to content

type object 'BaseCommand' has no attribute 'option_list' #14

@Ecozzo

Description

@Ecozzo

I'm in Django 2.0.1.
After removing migrations and making new migration everything is ok and the admin page work.
When running python manage.py stream I get the error
File "/mysite/twitter_stream/management/commands/stream.py", line 46, in Command
option_list = BaseCommand.option_list + (
AttributeError: type object 'BaseCommand' has no attribute 'option_list'
Looking around I understand that BaseCommand.option_list was deprecated in Django 1.8 and removed in Django 1.10. I also understand it was fixed, but I don't realize how to change it here.
Any idea?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions