Přidán parametr, který je úplně k ničemu :-)
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.
This commit is contained in:
parent
882f8e2228
commit
42d5ddc6fb
1 changed files with 1 additions and 1 deletions
|
@ -52,7 +52,7 @@ class Seznam_PrednaskaInline(admin.TabularInline):
|
||||||
]
|
]
|
||||||
exclude = ['prednaska']
|
exclude = ['prednaska']
|
||||||
|
|
||||||
def has_add_permission(self, req): return False
|
def has_add_permission(self, req, obj): return False
|
||||||
|
|
||||||
|
|
||||||
class SeznamAdmin(VersionAdmin):
|
class SeznamAdmin(VersionAdmin):
|
||||||
|
|
Loading…
Reference in a new issue