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.
15 lines
285 B
15 lines
285 B
9 months ago
|
from .models 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
|