I am creating a Django application where all models can be connected to each other in the order specified by the user. I customize all this using GenericForeignKeys. A kicker is what I need to be able to support multiple collections of these types of / admin relationships. Thus, a single object may have more than one set of related objects.
Does anyone know a good GenericForeignKey widget for this situation? Preferably, it will be an autocomplete search that fills out the administrative form, as I can end up with a large number of objects.
Here is the code for my application to better understand what I mean.
from django.contrib import admin from django.contrib.contenttypes import generic from django.contrib.contenttypes.models import ContentType from django.db import models from django import forms
I searched and searched and found widgets that do this for ManyToMany relationships, but nothing for my situation.
Thanks for taking the time to look at this.
source share