generic views
This commit is contained in:
@ -1,9 +1,12 @@
|
||||
from django.http import HttpResponse
|
||||
|
||||
from django.contrib.auth.decorators import login_required
|
||||
|
||||
from cookbook.models import Recipe
|
||||
from cookbook.helper import dropbox
|
||||
|
||||
|
||||
@login_required
|
||||
def get_file_link(request, recipe_id):
|
||||
recipe = Recipe.objects.get(id=recipe_id)
|
||||
if recipe.link == "":
|
||||
|
Reference in New Issue
Block a user