Hi Everyone,
I have mongo db in backend. Below is the question details
Model
class Test(models.Model):
name = models.CharField(max_length=100)
Now I have saved an object with* name='"Random (4) done".*
Now If I am making a query:
Test.objects.filter(name__exact="Random (4) done")
In this case I am getting the desired result.
Now if I am making a case insenstive search like this.
Test.objects.filter(name__iexact="Random (4) done")
Then I am not getting any result.
I can't understand why?
Any help would be appricated.
Thanks
--
You received this message because you are subscribed to the Google Groups
"Django users" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
To view this discussion on the web visit
https://groups.google.com/d/msgid/django-users/0974762a-c8c8-4570-915a-ea1a61523dea%40googlegroups.com.