From 920448539631b52dcee53bd32a880abbc9de18bd Mon Sep 17 00:00:00 2001 From: Nick Pope Date: Wed, 13 Jan 2021 16:19:22 +0000 Subject: Fixed #16117 -- Added decorators for admin action and display functions. Refs #25134, #32099. --- tests/admin_utils/models.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'tests/admin_utils/models.py') diff --git a/tests/admin_utils/models.py b/tests/admin_utils/models.py index fda1380b23..e57c3926b5 100644 --- a/tests/admin_utils/models.py +++ b/tests/admin_utils/models.py @@ -1,3 +1,4 @@ +from django.contrib import admin from django.db import models from django.utils.translation import gettext_lazy as _ @@ -28,9 +29,9 @@ class Article(models.Model): def test_from_model(self): return "nothing" + @admin.display(description='not What you Expect') def test_from_model_with_override(self): return "nothing" - test_from_model_with_override.short_description = "not What you Expect" class ArticleProxy(Article): -- cgit v1.3