unfoldadmin / django-unfold

Modern Django admin theme for seamless interface development
https://unfoldadmin.com
MIT License
1.94k stars 188 forks source link

Doesn't work with django constance #848

Closed kartikjj closed 1 week ago

kartikjj commented 2 weeks ago

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?

lukasvinclav commented 1 week ago

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