mirror of
https://github.com/TandoorRecipes/recipes.git
synced 2025-12-24 02:39:20 -05:00
fixed decimalfield
This commit is contained in:
@@ -73,7 +73,7 @@ class Recipe(models.Model):
|
||||
class RecipeIngredients(models.Model):
|
||||
recipe = models.ForeignKey(Recipe, on_delete=models.CASCADE)
|
||||
unit = models.CharField(max_length=128)
|
||||
amount = models.DecimalField(default=0)
|
||||
amount = models.DecimalField(default=0, decimal_places=2, max_digits=16)
|
||||
ingredient = models.ForeignKey(Ingredients, models.PROTECT)
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user