summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTim Graham <timograham@gmail.com>2014-07-08 08:56:41 -0400
committerTim Graham <timograham@gmail.com>2014-07-08 08:56:41 -0400
commit9f18b6bcb027f7689eefca4c32b17707b39930e7 (patch)
tree1799be45351f8d8438d278ced91c7bf9ebffc53e
parent75ff7b8fb8335e181ad05e1d4244b4295cc7a105 (diff)
Fixed #22978 -- Removed a USA-centric example that didn't add much.
-rw-r--r--docs/topics/db/models.txt7
1 files changed, 0 insertions, 7 deletions
diff --git a/docs/topics/db/models.txt b/docs/topics/db/models.txt
index a1be192796..85fbce4bba 100644
--- a/docs/topics/db/models.txt
+++ b/docs/topics/db/models.txt
@@ -705,9 +705,6 @@ For example, this model has a few custom methods::
first_name = models.CharField(max_length=50)
last_name = models.CharField(max_length=50)
birth_date = models.DateField()
- address = models.CharField(max_length=100)
- city = models.CharField(max_length=50)
- state = models.CharField(max_length=2) # yes, this is America-centric
def baby_boomer_status(self):
"Returns the person's baby-boomer status."
@@ -719,10 +716,6 @@ For example, this model has a few custom methods::
else:
return "Post-boomer"
- def is_midwestern(self):
- "Returns True if this person is from the Midwest."
- return self.state in ('IL', 'WI', 'MI', 'IN', 'OH', 'IA', 'MO')
-
def _get_full_name(self):
"Returns the person's full name."
return '%s %s' % (self.first_name, self.last_name)