summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAdrian Holovaty <adrian@holovaty.com>2007-05-16 21:36:31 +0000
committerAdrian Holovaty <adrian@holovaty.com>2007-05-16 21:36:31 +0000
commitb723a3e9dd5acaa97480512e8243d078936b9afb (patch)
tree402268148b98393752c0ae278b6edad2b639ba2a
parente168f79365c52410f4eb4bbbbcc2e9a60fa6a682 (diff)
Simplified a coding style example in docs/contributing.txt from [5264]
git-svn-id: http://code.djangoproject.com/svn/django/trunk@5265 bcc190cf-cafb-0310-a4f2-bffc1f526a37
-rw-r--r--docs/contributing.txt8
1 files changed, 4 insertions, 4 deletions
diff --git a/docs/contributing.txt b/docs/contributing.txt
index 21a967961a..31409f27bd 100644
--- a/docs/contributing.txt
+++ b/docs/contributing.txt
@@ -348,8 +348,8 @@ Model style
Don't do this::
class Person(models.Model):
- FirstName = models.CharField(maxlength=20)
- Last_Name = models.CharField(maxlength=40)
+ first_name = models.CharField(maxlength=20)
+ last_name = models.CharField(maxlength=40)
class Meta:
verbose_name_plural = 'people'
@@ -359,8 +359,8 @@ Model style
class Meta:
verbose_name_plural = 'people'
- FirstName = models.CharField(maxlength=20)
- Last_Name = models.CharField(maxlength=40)
+ first_name = models.CharField(maxlength=20)
+ last_name = models.CharField(maxlength=40)
* The order of model inner classes and standard methods should be as
follows (noting that these are not all required):