Advertisement
Guest User

Untitled

a guest
May 22nd, 2016
168
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.20 KB | None | 0 0
  1. class Model1(models.Model):
  2. day = models.DateField(unique=True)
  3. .....
  4.  
  5.  
  6. class Model2(models.Model):
  7. day = models.ForeignKey(Table,
  8. on_delete=models.CASCADE)
  9. .....
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement