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? -- You received this message because you are subscribed to the Google Groups "Django users" group. To view this discussion on the web visit https://groups.google.com/d/msg/django-users/-/iEsXdDereEYJ. 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.