On 28 Aug 2009, at 17:03 , Mirat Bayrak wrote:
> Hi, i am trying to build a site thats like twitter (but not same).  
> Users can
> delete or edit their entries in my site but i coulndt find how can i  
> show
> options.
>
> I want to list entries and if an entry is users (logged user i mean)  
> i want
> to show edit end delete options. How can i do that?
Erm... {% if user.is_authenticated %}<!-- show controls here -->{%  
endif %}?

Of course you'd also have to check that the current user is the owner  
of the page.

you could also build a custom templatetag to handle all that, FWIW.

--~--~---------~--~----~------------~-------~--~----~
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+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/django-users?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to