0
我想做一個搜索功能:我使用GodX
在我搜索godx
作爲用戶名關鍵字後,在用戶管理中註冊我的用戶名,我可以得到GodX
對象。如何在Django中搜索CharField?
目前,我僅限於執行以下操作:
from django.contrib.auth.models import User
user = user.objects.get(username="godx")
# I hope I can get `GodX` object but the method is unavailable.
我該怎麼辦?