# is\_not\_a

Source: https://zotonic.com/docs/1565/is_not_a

URI: https://zotonic.com/id/1565

Language: en



is\_not\_a mirrors <a href="/id/doc_template_filter_filter_is_a" class="doc-reference doc-reference-filter"><code>filter#is_a</code></a>. It is particularly useful when iterating over a category and excluding members of a sub-category (iterating over all images associated with a page except images in the thumbnail category).

Example for looping over all media in a rsc but excluding the thumbnail resources:

```django
{% for m in m.rsc[id].media|is_not_a:"thumbnail" %}
...
{% endfor %}
```

License: 

Attribution: 

Related resources: https://zotonic.com/api/agent/related/1565?language=en


## API access

- [API help](<https://zotonic.com/api-help>)
- [OpenAPI specification](<https://zotonic.com/openapi.json>)
- [This resource as JSON](<https://zotonic.com/api/agent/resource/1565?language=en>)
