Is pk=31337 a magic number?  Could you say UserProfile.objects.get(user__username='user_999') or something similar?