I have a model like :
class MyModel(models.Model):
name = models.CharField(max_length=100)
type = models.ManyToManyField(Type, blank=True)
Here from admin I am adding MyModel.
What I want is if the type is not provided while saving then I want the type to be as default like Teacher
type Teacher
has not been created. If the type is not provided I want to create the type and assign it if the type is not provided