Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PYTHON

how to pass data between views django

def update_project_filter(request):
    ...
    selected_project_id = project_form.cleaned_data["Project_Name"].id
    request.session['selected_project_id'] = selected_project_id
    ...

def update_project(request):
    ...
    selected_project_id = request.session.get('selected_project_id')
    ...
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #pass #data #views #django
ADD COMMENT
Topic
Name
3+4 =