Finding all posts without tags in Django Postgres ArrayField
<p>Just like what my title says, I want to see all my posts without any tags. However none of the following ORM is working:</p>

<pre><code>x = PostTagging.obejcts.filter(tags=[])
x = PostTagging.objects.filter(tags__len=0)
</code></pre>

<p>All I get as a return is:</p>

<pre><code>&lt;QuerySet []&gt;
</code></pre>

<p><strong>Here is my model:</strong></p>

<pre><code>class PostTagging(models.Model):
    title = models.CharField(max_length=50)
    tags = ArrayField(models.CharField(max_length=200), blank=True, null=True)

    def __unicode__(self):
        return self.title
</code></pre>

<p>Here is my ORM for creating the blank tag:</p>

<pre><code>PostTagging.objects.create(title='Fifth Post')
</code></pre>

<p><code>PostTagging.objects.filter(tags__isnull=True)</code> is the best way</p>

python django postgresql