Monday, May 31, 2010

Re: New product django-queries

On 31/05/10 11:55, Guthy Peter wrote:
> Dear Django users,
>
> I have written a new module for Django: it's called django-queries,
> and is sort of a mix between the Admin and the Databrowse products.
> While the Admin interface is for entering data, django-queries is
> intended for searching the entered information.


Hmm. Have you seen django-filter? There's probably some overlap.

http://github.com/alex/django-filter/

> With these, you can answer questions like "which authors have written
> books that have genre Sci-Fi or Fantasy"

The approach might be a bit different, but you can allow such things in
django-filter with the related__field syntax, something like:

class AuthorFilterSet(FilterSet):
class Meta:
model = Author
books__genre = ModelMultipleChoiceFilter(queryset=Genre.objects.all())

--
You received this message because you are subscribed to the Google Groups "Django users" group.
To post to this group, send email to django-users@googlegroups.com.
To unsubscribe from this group, send email to django-users+unsubscribe@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/django-users?hl=en.

No comments:

Post a Comment