Currently MULTIOBJECT values truncate at 3 items with a bare ….
Goal: show obj1, obj2, obj3 and N more where N is the actual remaining count.
Implementation notes:
_get_field_valuealready fetches up to MAX+1 items to detect overflow.- To compute N, either:
- Add a
.count()call on the queryset before slicing, or - Fetch all items into a list and slice in Python (simpler, acceptable for typical M2M sizes).
- Add a
- Pass the full count alongside the truncated list in the row tuple, then use it in the template.
- Now the 3dots are not visible enought. Maybve a number of assigned object with some link to filter these objects would be suitable?
- When 3dots are visible, will the q (serach) still find object which are not displayed? (not displayed is does seem bad to me)