From 42d5ddc6fb929508ebe0d8ee99fb88068c038ade Mon Sep 17 00:00:00 2001 From: "Pavel \"LEdoian\" Turinsky" Date: Mon, 31 Jan 2022 20:10:39 +0100 Subject: [PATCH] =?UTF-8?q?P=C5=99id=C3=A1n=20parametr,=20kter=C3=BD=20je?= =?UTF-8?q?=20=C3=BApln=C4=9B=20k=20ni=C4=8Demu=20:-)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit env/lib/python3.9/site-packages/django/contrib/admin/checks.py:1099: RemovedInDjango30Warning: Update Seznam_PrednaskaInline.has_add_permission() to accept a positional `obj` argument. --- prednasky/admin.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/prednasky/admin.py b/prednasky/admin.py index 2688fffc..c9807b27 100644 --- a/prednasky/admin.py +++ b/prednasky/admin.py @@ -52,7 +52,7 @@ class Seznam_PrednaskaInline(admin.TabularInline): ] exclude = ['prednaska'] - def has_add_permission(self, req): return False + def has_add_permission(self, req, obj): return False class SeznamAdmin(VersionAdmin):