Hi John,

On Wed, 2006-09-20 at 21:26 -0700, John M wrote:
[...]
> Here's my problem, on my main page, id like to show the public sutff if
> the user isn't logged in, or show the users own stuff if they are
> logged in.
> 
> Is this possible with generic views?  I would love to use them since
> they are SO COOL!

You can't do this quite so directly, since you are trying to change the
queryset you are passing the the view based on some external factors.
However, it's fairly easy to extend the generic views ever so slightly
to accomplish this. I've written a mini-tutorial on this at 

http://www.pointy-stick.com/blog/2006/06/29/django-tips-extending-generic-views/

Regards,
Malcolm



--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"Django users" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/django-users
-~----------~----~----~----~------~----~------~--~---

Reply via email to