Let’s assume the minimal data model below:
class Path(models.Model): name = models.CharField(max_length=32, unique=True) class Point(models.Model): coordinates = models.PointField() path = models.ForeignKey(Path, on_delete=models.CASCADE)
I’m trying to find a way to display a map of all the Points of a Path instance on the change view of that particular Path’s instance. Put another way I’d like to have the same behaviour as TabularInline for Point as an inline of Path but displayed through a GeoModelAdmin-like map. Bonus point if that map is actually read-write and let’s me create new Point instances directly.
I’m on Django 4.2 and using postgis.
Thanks for your help.