Advertisement
Guest User

Untitled

a guest
Apr 7th, 2020
127
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Python 0.27 KB | None | 0 0
  1. class One(models.Model):
  2.     name = models.Charfiel()
  3.    
  4.    
  5. class Two(models.Model):
  6.     name = models.CharField()
  7.     one = models.ForeignKey(One)
  8.    
  9.    
  10. class Three(models.Model):
  11.     name = models.CharField()
  12.     two = models.ManyToManyField(Two)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement