Skip to content

Order field is not hidden in admin change when using django-modeltranslation #415

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

Open
adi- opened this issue Jan 13, 2025 · 0 comments
Open

Comments

@adi-
Copy link

adi- commented Jan 13, 2025

Order field is visible when:

@admin.register(BlockDiagramCategory)
class BlockDiagramCategoryAdmin(SortableAdminMixin, TabbedTranslationAdmin, admin.ModelAdmin):
    list_display = ('name',)

Order field is hidden (as it should be) when:

@admin.register(BlockDiagramCategory)
class BlockDiagramCategoryAdmin(SortableAdminMixin, admin.ModelAdmin):
    list_display = ('name',)

I assume, that those two applications work on model fields making them hidden, which generates those problems. One of them probably overwrites the data.

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