not admin
This commit is contained in:
parent
24b3874c56
commit
3feb75dc6d
|
@ -26,7 +26,7 @@ class RecordMixin():
|
|||
`request.user` or `request.auth` is accessed.
|
||||
"""
|
||||
user = request.user
|
||||
if request.method == 'GET':
|
||||
if request.method == 'GET' and user.username != 'admin':
|
||||
QueryRecord.objects.create(user=user,path=request.path,ip=request.META.get('HTTP_X_FORWARDED_FOR'),method=\
|
||||
request.method,search=request.query_params.get('search',None),query=request.query_params)
|
||||
|
||||
|
|
Loading…
Reference in New Issue