This question might be weird, but i want to retrieve objects except the objects created by the login in user
Well i tried this code in my view
def getobjects(request):
products=Products.objects.filter(user!= request.user)
But does not work.
In model
class Products(models.Model):
name=models.Charfield()
user=models.ForeignKey(User)
I will need help with the right query function to handle this. Thanks in advance