mirror of
https://github.com/TandoorRecipes/recipes.git
synced 2026-01-11 09:07:12 -05:00
stuff working
This commit is contained in:
@@ -19,6 +19,19 @@ def index(request):
|
||||
return render(request, 'index.html')
|
||||
|
||||
|
||||
@login_required
|
||||
def import_recipes(request):
|
||||
if request.method == "POST":
|
||||
form = ImportForm(request.POST)
|
||||
if form.is_valid():
|
||||
|
||||
return redirect('index')
|
||||
else:
|
||||
form = ImportForm()
|
||||
|
||||
return render(request, 'storage/import.html', {'form': form})
|
||||
|
||||
|
||||
@login_required
|
||||
def edit_recipe(request, recipe_id):
|
||||
if request.method == "POST":
|
||||
|
||||
Reference in New Issue
Block a user