Answer the question
In order to leave comments, you need to log in
How to get queryset where attribute is not empty?
Let's say there is a model
class A(models.Model):
name = models.CharField(max_length=200, verbose_name='Название')
com = models.TextField(blank=True, null=True, verbose_name='Комментарий')
hochu_eto = A.objects.filter(name='Имя', com is not None)
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question