Identation correction in for the webhook part on the admin
All checks were successful
continuous-integration/drone/push Build is passing
All checks were successful
continuous-integration/drone/push Build is passing
This commit is contained in:
parent
3abe84ca2b
commit
37eeeedebc
@ -44,7 +44,6 @@ def set_webhooks(self, request, queryset):
|
|||||||
def get_assistant_name(self, obj):
|
def get_assistant_name(self, obj):
|
||||||
"""Show the name of the assistant linked to the bot."""
|
"""Show the name of the assistant linked to the bot."""
|
||||||
return obj.assistant.name if obj.assistant else "None"
|
return obj.assistant.name if obj.assistant else "None"
|
||||||
|
|
||||||
get_assistant_name.short_description = "Assistant Name"
|
get_assistant_name.short_description = "Assistant Name"
|
||||||
|
|
||||||
def set_webhook_action(self, obj):
|
def set_webhook_action(self, obj):
|
||||||
@ -53,5 +52,4 @@ def set_webhooks(self, request, queryset):
|
|||||||
'<a class="button" href="{}">Set Webhook</a>',
|
'<a class="button" href="{}">Set Webhook</a>',
|
||||||
f"/admin/pxy_bots/set_webhook/{obj.id}/"
|
f"/admin/pxy_bots/set_webhook/{obj.id}/"
|
||||||
)
|
)
|
||||||
|
|
||||||
set_webhook_action.short_description = "Webhook"
|
set_webhook_action.short_description = "Webhook"
|
||||||
|
Loading…
x
Reference in New Issue
Block a user