Skip to content

Commit

Permalink
невозможно создать рецепт без тегов
Browse files Browse the repository at this point in the history
  • Loading branch information
sergey-xx committed Nov 14, 2023
1 parent aa453dc commit 9a21135
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
4 changes: 2 additions & 2 deletions backend/foodgram/settings.py
Original file line number Diff line number Diff line change
Expand Up @@ -21,9 +21,9 @@

ALLOWED_HOSTS = ['127.0.0.1',
'0.0.0.0',
'158.160.81.84',
os.getenv('SECRET_KEY'),
'localhost',
'tastygram.ddns.net']
os.getenv('DOMAIN_NAME')]

# Application definition

Expand Down
1 change: 1 addition & 0 deletions backend/recipes/admin.py
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,7 @@ class TagInlineAdmin(admin.TabularInline):
"""Класс для вывода Тегов."""

model = Recipe.tags.through
min_num = 1


class IngredientInlineAdmin(admin.TabularInline):
Expand Down

0 comments on commit 9a21135

Please sign in to comment.