Skip to content

django-constance: can't disable boolean setting when using unfold's additional choice field #1528

@Zerotask

Description

@Zerotask

What version of Unfold are you using?

0.64.2

What version of Django are you using?

5.1

What browser are you using?

Latest Safari

Did you checked changelog/commit history, if the bug is not already fixed?

Yes

Did you searched other issues, if the bug is not already fixed?

Yes

Did you checked documentation?

Yes

Are you able to replicate the bug in the demo site?

Yes, see "Website in construction" and try to deactivate it

https://demo.unfoldadmin.com/de/admin/constance/config/

Describe your issue

when using unfold'd choice field for a boolean setting, you can't deactivate it (set it to false). This will raise a validation error.

This is the default:

Image

Now I uncheck and save it:

Image Image

If I reload the page, it's still checked (True).

When I remove CONSTANCE_ADDITIONAL_FIELDS and use constance's default, I can uncheck it

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions