unfoldadmin/django-unfold

Doesn't work with django constance

Closed this issue · 1 comments

What version of Unfold are you using?

0.40.0

What version of Django are you using?

5.1.1

What browser are you using?

Chrome 130.0.6723.117

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?

No

Repository with reproduced bug

from constance.admin import Config, ConstanceAdmin
from unfold.admin import ModelAdmin

class CustomAdminMixin:
    formfield_overrides = {
        models.TextField: {
            "widget": WysiwygWidget,
        },
    }



class CustomConstanceAdmin(ConstanceAdmin, CustomAdminMixin, ModelAdmin):
    pass


admin.site.unregister([Config])
admin.site.register([Config], CustomConstanceAdmin)

Describe your issue

Doing this is not making my constance config page follow the unfold design scheme. The text isn't visible in dark mode for inputs.
What is the correct way to register constance with unfold?

For third party application integration you can contact us here https://unfoldadmin.com/