class Surface(models.Model): name = models.CharField(max_length=100) class SurfaceGeometry(models.Model): surface = models.ForeignKey(Surface, on_delete=mo