@classmethod
    def get_log_value(cls, user, varname):
        logs = Log.objects.filter(
            user=user, varname=varname).order_by('-stamp')
        return logs.exists() and logs[0].value or None
Get most recent log value with given varname.
dataset/ETHPy150Open orcasgit/django-request-log/log/models.py/Log.get_log_value