diff options
| author | Nick Pope <nick.pope@flightdataservices.com> | 2021-01-13 16:19:22 +0000 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2021-01-13 17:19:22 +0100 |
| commit | 920448539631b52dcee53bd32a880abbc9de18bd (patch) | |
| tree | 03dd52fd206088302de11e0b485b420726718a4a /tests/admin_utils/models.py | |
| parent | 83fcfc9ec8610540948815e127101f1206562ead (diff) | |
Fixed #16117 -- Added decorators for admin action and display functions.
Refs #25134, #32099.
Diffstat (limited to 'tests/admin_utils/models.py')
| -rw-r--r-- | tests/admin_utils/models.py | 3 |
1 files changed, 2 insertions, 1 deletions
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): |
