mirror of https://github.com/django/django.git
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
This commit is contained in:
parent
e168f79365
commit
b723a3e9dd
|
@ -348,8 +348,8 @@ Model style
|
||||||
Don't do this::
|
Don't do this::
|
||||||
|
|
||||||
class Person(models.Model):
|
class Person(models.Model):
|
||||||
FirstName = models.CharField(maxlength=20)
|
first_name = models.CharField(maxlength=20)
|
||||||
Last_Name = models.CharField(maxlength=40)
|
last_name = models.CharField(maxlength=40)
|
||||||
class Meta:
|
class Meta:
|
||||||
verbose_name_plural = 'people'
|
verbose_name_plural = 'people'
|
||||||
|
|
||||||
|
@ -359,8 +359,8 @@ Model style
|
||||||
class Meta:
|
class Meta:
|
||||||
verbose_name_plural = 'people'
|
verbose_name_plural = 'people'
|
||||||
|
|
||||||
FirstName = models.CharField(maxlength=20)
|
first_name = models.CharField(maxlength=20)
|
||||||
Last_Name = models.CharField(maxlength=40)
|
last_name = models.CharField(maxlength=40)
|
||||||
|
|
||||||
* The order of model inner classes and standard methods should be as
|
* The order of model inner classes and standard methods should be as
|
||||||
follows (noting that these are not all required):
|
follows (noting that these are not all required):
|
||||||
|
|
Loading…
Reference in New Issue