mirror of https://github.com/jumpserver/jumpserver
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.
14 lines
383 B
14 lines
383 B
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
|