TradeOffer.objects.filter(initiated\_by=request.user.friend_code
TradeOffer.objects.filter(initiated_by=request.user.friend_code
TradeOffer.objects.filter(initiated_by=request.user.friend_code)
from .models import TradeOffer, TradeAcceptance; TradeOffer.objects.filter(initiated_by=request.user.friend_code)
exit
exit()
   from django.contrib.auth.models import User
   from trades.models import TradeOffer
   # Replace 'your_username' with the username of the user you want to test.
   user = User.objects.get(username="your_username")
   friend_code = user.friend_code
   # Verify the friend code:
   print("Friend Code:", friend_code)
from django.contrib.auth.models import User
from trades.models import TradeOffer
# Replace 'your_username' with the username of the user you want to test.
user = User.objects.get(username="your_username")
friend_code = user.friend_code
# Verify the friend code:
print("Friend Code:", friend_code)
exit
exit()
