Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add Quickstart step to show flags in the admin #83

Open
higs4281 opened this issue Sep 27, 2021 · 0 comments
Open

Add Quickstart step to show flags in the admin #83

higs4281 opened this issue Sep 27, 2021 · 0 comments

Comments

@higs4281
Copy link
Member

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant