I solved it like this:
MyClass.objects.filter(name__iexact=my_parameter)
There is even a way to use it for substring search:
MyClass.objects.filter(name__icontains=my_parameter)
There’s a link to the documentation.
More Related Contents:
- How to filter empty or NULL names in a QuerySet?
- How to view corresponding SQL query of the Django ORM’s queryset?
- Why does django’s prefetch_related() only work with all() and not filter()?
- Select DISTINCT individual columns in django?
- django-orm case-insensitive order by
- Django: implementing JOIN using Django ORM?
- Creating Partial Indexes with Django 1.7
- When saving, how can you check if a field has changed?
- How to express a One-To-Many relationship in Django?
- Override default queryset in Django admin
- How to create an object for a Django model with a many to many field?
- Setting the selected value on a Django forms.ChoiceField
- Django: Set foreign key using integer?
- Django migrate –fake and –fake-initial explained
- LEFT JOIN Django ORM
- django – get() returned more than one topic
- Django – how to specify a database for a model?
- “Post Image data using POSTMAN”
- Django model: delete() not triggered
- Django accessing ManyToMany fields from post_save signal
- Dropdown in Django Model
- Django unique_together with nullable ForeignKey
- Django: ManyToMany filter matching on ALL items in a list
- How to add a sortable count column to the Django admin of a model with a many-to-one relation?
- How to use custom manager with related objects?
- Password field in Django model
- Django: dynamic database file
- conversion of datetime Field to string in django queryset.values_list()
- Django Rest framework, how to include ‘__all__’ fields and a related field in ModelSerializer ?
- Saving Many To Many data via a modelform in Django