diff --git a/recipe/models.py b/recipe/models.py index 94c2dd1..52b566f 100644 --- a/recipe/models.py +++ b/recipe/models.py @@ -55,7 +55,9 @@ class Recipe(models.Model): difficulty = 0 else: difficulty = 0 - recipe = cls.objects.create(name=name, recipe_type=recipe_type, rate=rate, difficulty=difficulty) + recipe = cls.objects.create( + name=name, recipe_type=recipe_type, rate=rate, difficulty=difficulty, status=const.RECIPE_STATUS_ACTIVE + ) return recipe @property