You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I have two models, in a many-to-many relationship, connected by a through model. In the admin of the first model I have a tab with tabular inlines to create connections to the second model with an autocomplete field.
After the latest changes, all the fields are of the same (button) size, including the search field. This makes searching really difficult.
Workaround: Select an item from the list (if it's selectable) and the section resizes based on the content so that you can actually search.
Reproducing this can be done with the following code (using FirstModel and SecondModel but you can see the original code in the previous section of this issue):
class SecondModelInline(TabularInline):
model = FirstModel.second_models.through
extra = 1
tab = True
autocomplete_fields = ("second_model",)
@admin.register(FirstModel)
class FirstModelAdmin(ModelAdmin):
...
inlines = (SecondModelInline,)
How this section looks in 0.53
How this section looks in 0.54
How this section looks in 0.54 with w-full added to the div's classes
The text was updated successfully, but these errors were encountered:
lukasvinclav
changed the title
Creating through tabular inlines is buggy starting with 0.54.0
fix: improper width for autocomplete fields in tabular inline
Apr 10, 2025
What version of Unfold are you using?
0.54.0
What version of Django are you using?
5.1.8
What browser are you using?
Chrome 135.0.7049.42
Did you check the changelog/commit history, if the bug is not already fixed?
Yes, and located that the issue is on this line and caused by this commit
Did you searched other issues, if the bug is not already fixed?
Yes
Did you checked documentation?
No
Are you able to replicate the bug in the demo site?
No, because I don't think there's a
TabularInline
where I can create a new many-to-many objectRepository with reproduced bug
This is the inline where we have the issue
https://github.com/code4romania/redirectioneaza/blob/7bac0a30c866f612c631a0ee673fa91193cf6dcf/backend/partners/admin.py#L44
Describe your issue
I have two models, in a many-to-many relationship, connected by a through model. In the admin of the first model I have a tab with tabular inlines to create connections to the second model with an autocomplete field.
After the latest changes, all the fields are of the same (button) size, including the search field. This makes searching really difficult.
Workaround: Select an item from the list (if it's selectable) and the section resizes based on the content so that you can actually search.
Reproducing this can be done with the following code (using
FirstModel
andSecondModel
but you can see the original code in the previous section of this issue):The text was updated successfully, but these errors were encountered: