Project

General

Profile

Feature #175

Better attribute filtering

Added by Stephen Burrows about 13 years ago.

Status:
New
Priority:
Normal
Assignee:
-
Category:
Core
Target version:
-
Start date:
07/20/2011
Due date:
% Done:

0%

Estimated time:

Description

Right now, it's really painful to filter for attributes with a given value - for example, if one wants to get all BlogEntries that have a "published" attribute. It would be great to have an API to make this kind of filter - or better yet, enable filtering via attributes, a la the django-taggit TaggableManager. This would allow lookups like BlogEntry.objects.filter(attributes__key="hi", attributes__value="lo") (or alternatively, BlogEntry.objects.filter_attributes("hi", "low", "exact"), which would be simpler but less elegant.)

Also available in: Atom PDF