2009/12/14 fredlab <fbeau...@gmail.com>:
> Hey,
>
> I've looking for hours and I could not find what I am looking for. It
> is probably a basic question but I am a newcomer to Django (will
> probably forget PHP in a few days !!!).
>
> Imagine I have a blog post application but many users can create
> posts. A post is written by a user. In the admin site, when I list all
> post, there is a column with the user name. I would like to be able
> to :
>
> * click on the user name and directly switch to the user view
> * add a field "more from that user" so that when you clik on it, the
> posts list is automatically filtered based on that user name.
>
> I imagine we can do it from the model file definition (or admin.py
> file) but I could not find how.
>
> In advance, thanks for the help.
>
> Regards,
>
> Fredlab
>

Maybe these can help:

http://docs.djangoproject.com/en/dev/ref/contrib/admin/#django.contrib.admin.ModelAdmin.list_display
http://docs.djangoproject.com/en/dev/ref/contrib/admin/#django.contrib.admin.ModelAdmin.list_filter

--

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


Reply via email to