summaryrefslogtreecommitdiff
path: root/tests/admin_docs/models.py
diff options
context:
space:
mode:
authorZan Anderle <zan.anderle@gmail.com>2014-11-03 20:16:28 +0100
committerTim Graham <timograham@gmail.com>2014-11-03 15:30:46 -0500
commit7b420367524ad9f29b8bf0284f4b40bd6cfc8b93 (patch)
tree15e041668111d6e566684d480b3e72fcdd88a1c4 /tests/admin_docs/models.py
parent1cf109515a08aecb34c48bedb1df8027f7fad701 (diff)
Fixed #5405 -- Added admindocs support for reStructured text in model docstrings
Thanks elvard and gkmngrgn for work on the patch and Markus H. for review.
Diffstat (limited to 'tests/admin_docs/models.py')
-rw-r--r--tests/admin_docs/models.py12
1 files changed, 12 insertions, 0 deletions
diff --git a/tests/admin_docs/models.py b/tests/admin_docs/models.py
index 9b8f388f4e..7e8b6c37e8 100644
--- a/tests/admin_docs/models.py
+++ b/tests/admin_docs/models.py
@@ -18,6 +18,18 @@ class Family(models.Model):
class Person(models.Model):
+ """
+ Stores information about a person, related to :model:`myapp.Company`.
+
+ **Notes**
+
+ Use ``save_changes()`` when saving this object.
+
+ ``company``
+ Field storing :model:`myapp.Company` where the person works.
+
+ (DESCRIPTION)
+ """
first_name = models.CharField(max_length=200, help_text="The person's first name")
last_name = models.CharField(max_length=200, help_text="The person's last name")
company = models.ForeignKey(Company, help_text="place of work")