from django.contrib.contenttypes.admin import GenericTabularInline


class LinkedItemAdmin(GenericTabularInline):
    model = LinkedItem
field = ['ingredient']
filter_horizontal = ['ingredient']
extra = 0
min_num = 1
max_num = 1
can_delete = False
Как получить доступ к ManyToManyField между двумя приложениями, используя ContentTypes для администратора Django?