Aditya Sriram M
unread,May 19, 2012, 9:01:05 AM5/19/12Sign in to reply to author
Sign in to forward
You do not have permission to delete messages in this group
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to django...@googlegroups.com
I have a function like this..
list_display = (..,get_link_to_users, ..)
def get_link_to_users(self, obj):
html_table = '<a href="JavaScript:window.open(''../user/?q=%s'');"> My Users </a>' % (obj.customer_id)
print html_table
return html_table
get_link_to_fortress_users.short_description = 'Fortress Users'
get_link_to_fortress_users.allow_tags = True
Question: user and customer are my models. In Customer model, I would like to put just the link. And on clicking this link, a new popup should come up with the related users. How to do this?