from django.utils import timezone
from users.models import User


class UpdateUserTempMeta(object):

    def process_view(self, request, view_func, view_args, view_kwargs):
        assert hasattr(request, 'user')
        if request.user.is_authenticated():
            User.objects.filter(id=request.user.id).update(last_activity=
                timezone.now(), latest_ip=request.META['REMOTE_ADDR'])

88f6081e5237231a8d8362b85789e1d76a4a250a
<mask token>

<mask token>


class UpdateUserTempMeta(object):
    <mask token>

<mask token>


class UpdateUserTempMeta(object):

    def process_view(self, request, view_func, view_args, view_kwargs):
        assert hasattr(request, 'user')
        if request.user.is_authenticated():
            User.objects.filter(id=request.user.id).update(last_activity=
                timezone.now(), latest_ip=request.META['REMOTE_ADDR'])

from django.utils import timezone
from users.models import User


class UpdateUserTempMeta(object):

    def process_view(self, request, view_func, view_args, view_kwargs):
        assert hasattr(request, 'user')
        if request.user.is_authenticated():
            User.objects.filter(id=request.user.id).update(last_activity=
                timezone.now(), latest_ip=request.META['REMOTE_ADDR'])
