Django ORM: checking if a field is blank or filled?
Share
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
You can check is a field is blank or not by
isnull
YourModel.objects.filter(title__isnull=True)
This will return all the objects which have no title.