(C-x means ctrl+x, M-x means alt+x)
The default prefix is C-b. If you (or your muscle memory) prefer C-a, you need to add this to ~/.tmux.conf
:
from md5 import md5 | |
# header from 401 response on REGISTER | |
# Authorization: Digest username="883140776410950", realm="gw_youmagic", algorithm=MD5, uri="sip:GW_Youmagic", nonce="1476157437:0a1418a40f8ee1c9a55f1587ab931c14", response="3ff479ccc24874f66aae45dac889d099" | |
login = '883140776410950' | |
uri = 'sip:GW_Youmagic' | |
nonce = '1476157437:0a1418a40f8ee1c9a55f1587ab931c14' | |
realm = 'gw_youmagic' | |
password = '----------' |
class MyAdmin(admin.ModelAdmin): | |
list_display = (..., 'actions_html') | |
def actions_html(self, obj): | |
return format_html('<button class="btn" type="button" onclick="activate_and_send_email({pk})">Activate and send email</button>', pk=obj.pk) | |
actions_html.allow_tags = True | |
actions_html.short_description = "Actions" |