Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 2 additions & 1 deletion recipes/serializer.py
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,8 @@ class Meta:
fields = ['id', 'profile', 'category', 'title', 'prepTime', 'cookTime', 'servings', 'method', 'image', 'ingredients']

class CreateRecipeSerializer(serializers.ModelSerializer):

# ingredients = IngredientListSerializer(many=True,)

class Meta:
model = Recipe
fields = ['profile', 'category', 'title', 'prepTime', 'cookTime', 'servings', 'method', 'image', 'ingredients']
3 changes: 2 additions & 1 deletion wasfat/settings.py
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@
"""

from datetime import timedelta
import os
from pathlib import Path

# Build paths inside the project like this: BASE_DIR / 'subdir'.
Expand All @@ -27,7 +28,7 @@
DEBUG = True

ALLOWED_HOSTS = []

os.path.join(BASE_DIR / "static")

# Application definition

Expand Down