mirror of https://github.com/jumpserver/jumpserver
14 lines
383 B
Python
14 lines
383 B
Python
from django.db import models
|
|
|
|
|
|
class DebugQueryManager(models.Manager):
|
|
def get_queryset(self):
|
|
import traceback
|
|
lines = traceback.format_stack()
|
|
print(">>>>>>>>>>>>>>>>>>>>>>>>>>>>")
|
|
for line in lines[-10:-1]:
|
|
print(line)
|
|
print("<<<<<<<<<<<<<<<<<<<<<<<<<<<<")
|
|
queryset = super().get_queryset()
|
|
return queryset
|