When I am using this queryset I am not getting any error and it's returning the user id
UserProfile.objects.get(forget_password_token=forget_password_token)
print(user.user_id)
>>>19
But when I am using this queryset UserProfile.objects.filter(forget_password_token=forget_password_token)
why I am getting this error QuerySet' object has no attribute 'user_id'
what is difference between get and filter in Django ? why not working filter method here?
When user putting wrong code in input fields then it's rising this error
UserProfile matching query does not exist.