From c0d5d23c8c999a84d7686f0aab7c7e0fe3500371 Mon Sep 17 00:00:00 2001 From: lewis-kori Date: Thu, 11 Jul 2024 18:52:15 +0300 Subject: [PATCH] Update FlowInline to accept an optional object argument --- yoflow/admin.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/yoflow/admin.py b/yoflow/admin.py index b3315e0..d3c8489 100644 --- a/yoflow/admin.py +++ b/yoflow/admin.py @@ -55,7 +55,7 @@ def link(self, obj): ) return format_html('{}'.format(url, obj.pk)) - def has_add_permission(self, request): + def has_add_permission(self, request, object=None): return False