Skip to content

Auto-create Custom Switch Models #456

@cole-jacobs

Description

@cole-jacobs

Auto-creating custom switches fails with: AttributeError: Manager isn't available; 'waffle.Switch' has been swapped for '<custom model>'.

In models.py, the Flag version of is_active calls get_waffle_flag_model before its call to get_or_create. I think a similar pattern should be used for switches and samples. Happy to submit a patch for this tonight.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions