Django admin, filter objects by ManyToMany reference

Posted by Nick Z on Stack Overflow See other posts from Stack Overflow or by Nick Z
Published on 2010-06-14T11:05:46Z Indexed on 2010/06/14 11:12 UTC
Read the original article Hit count: 201

Filed under:
|
|

Hello!

There's photologue application, simple photo gallery for django, implementing Photo and Gallery objects. Gallery object has ManyToMany field, which references Photo objects.

I need to be able to get list of all Photos for a given Gallery. Is it possible to add Gallery filter to Photo's admin page? If it's possible, how to do it best?

© Stack Overflow or respective owner

Related posts about python

Related posts about django