Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- class Categories(models.Model):
- nom = models.CharField(max_length=255)
- def __unicode__(self):
- return self.nom
- class SousCategories(models.Model):
- categorie = models.ForeignKey(Categories)
- nom = models.CharField(max_length=255)
- def __unicode__(self):
- return self.nom
Add Comment
Please, Sign In to add comment