Skip to content

Commit

Permalink
awaken lazy obj
Browse files Browse the repository at this point in the history
  • Loading branch information
JasonLovesDoggo committed Aug 26, 2024
1 parent 8ce09b1 commit f21c2cb
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions core/views/qr.py
Original file line number Diff line number Diff line change
Expand Up @@ -126,8 +126,10 @@ def qr(request, key):
context = dict(first=False)
codes = QrCode.code_pks(request.user.current_team)
qr_code: QrCode | None = QrCode.objects.filter(key=key).first()
print(type(request.user))
print(dir(request.user))
user= request.user._wrapped if hasattr(request.user,'_wrapped') else request.user

print(type(user))
print(dir(user))
if request.user.can_debug:
return redirect(qr_code.get_admin_url())
context["qr_code"]: QrCode
Expand Down

0 comments on commit f21c2cb

Please sign in to comment.