Skip to content

Add Quickstart step to show flags in the admin #83

@higs4281

Description

@higs4281

Flags that are declared in Django settings don't show up in the admin because of a Catch-22: The admin only shows database entries, and db entries are only created by admin actions.

One way to avoid a dead end in the Quickstart guide is to add a manage.py step, something like this, just before the Django admin section:


... [URL guidance]

Instantiate the blank flag in the database with a manage.py command:

python manage.py disable_flag MY_FLAG

Then in the Django admin ...


An alternative could be to hack the Django admin to show both database entries and settings-declared flags, similar to the way wagtail-flags does, but that would duplicate effort and complicate the way the apps work together.

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