summaryrefslogtreecommitdiff
path: root/tests/admin_docs/models.py
diff options
context:
space:
mode:
authorhumbertotm <humberto.htm@gmail.com>2018-05-28 19:59:03 -0700
committerTim Graham <timograham@gmail.com>2018-06-03 21:00:28 -0400
commit747ff7a30b79e12d344169200de24f88a22ddee9 (patch)
treec0e40c0ce672866b3d613157d0641dddfa93ce76 /tests/admin_docs/models.py
parent085ebc5f1a0e96784516e551cb9225cc6836f1d0 (diff)
Fixed #29385 -- Made admindocs ModelDetailView show model properties.
Original patch by bkaluza. Tests and docs by humbertotm.
Diffstat (limited to 'tests/admin_docs/models.py')
-rw-r--r--tests/admin_docs/models.py4
1 files changed, 4 insertions, 0 deletions
diff --git a/tests/admin_docs/models.py b/tests/admin_docs/models.py
index a425ae0fcd..02bf1efa9f 100644
--- a/tests/admin_docs/models.py
+++ b/tests/admin_docs/models.py
@@ -52,6 +52,10 @@ class Person(models.Model):
def dummy_function(self, baz, rox, *some_args, **some_kwargs):
return some_kwargs
+ @property
+ def a_property(self):
+ return 'a_property'
+
def suffix_company_name(self, suffix='ltd'):
return self.company.name + suffix