class Dog(models.Model):
    name = models.CharField()
owner = models.ForeignKey('myapp.Owner', related_name=
    '%(app_label)s_%(class)s_dogs')
How to create exact duplicate of Django model that has M2M and FK relationships