You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
|
from.model import User
|
|
|
|
def movie_user(request):
|
|
user_id=request.session.get('user_id')
|
|
context={}
|
|
if user_id:
|
|
try:
|
|
user=User.objects.get(pk=user_id)
|
|
context['movie_user']=user
|
|
except:
|
|
pass
|
|
return context
|