after a model insert then create a model in django code example
Example 1: str django
def __str__(self):
return self.name
Example 2: insert data in django models
from books.models import Publisher
p = Publisher(name='Apress', city='Berkeley')
p.save()