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

Improve Show As Tabs by Default Class #357

Closed
wants to merge 6 commits into from

Conversation

ElebrUS
Copy link

@ElebrUS ElebrUS commented Apr 19, 2024

Problematics:

  • Suppose I already have a finished project and I want to connect unfold admin to it.
  • All my models are highly loaded and have a lot of fields that I want to group by tabs, specifying classes for each fieldset is a very labor-intensive task

Solution:

  • Add default class settings for all fieldsets that can be overridden in one/few models

Features:

  • Added defining a default name for a fieldset if it's a tab and it doesn't have a name assigned to it, i.e. None

@lukasvinclav lukasvinclav added the wontfix This will not be worked on label May 30, 2024
@lukasvinclav
Copy link
Contributor

I think you can write your own admin mixin which will override get_fieldsets method and adds an extra class.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
wontfix This will not be worked on
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants