mirror of
https://github.com/TandoorRecipes/recipes.git
synced 2026-01-01 04:10:06 -05:00
supermarket category api working
This commit is contained in:
@@ -162,8 +162,8 @@ class Supermarket(models.Model):
|
||||
|
||||
|
||||
class SupermarketCategoryRelation(models.Model):
|
||||
supermarket = models.ForeignKey(Supermarket, on_delete=models.CASCADE)
|
||||
category = models.ForeignKey(SupermarketCategory, on_delete=models.CASCADE)
|
||||
supermarket = models.ForeignKey(Supermarket, on_delete=models.CASCADE, related_name='category_to_supermarket')
|
||||
category = models.ForeignKey(SupermarketCategory, on_delete=models.CASCADE, related_name='category_to_supermarket')
|
||||
order = models.IntegerField(default=0)
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user