mirror of
https://github.com/django/django.git
synced 2025-10-24 06:06:09 +00:00
[1.10.x] Fixed #26021 -- Applied hanging indentation to docs.
Backport of 4a4d7f980e from master
This commit is contained in:
@@ -375,7 +375,8 @@ SQL that is generated. Here's a brief example::
|
||||
expression,
|
||||
distinct='DISTINCT ' if distinct else '',
|
||||
output_field=IntegerField(),
|
||||
**extra)
|
||||
**extra
|
||||
)
|
||||
|
||||
|
||||
``Value()`` expressions
|
||||
|
||||
@@ -112,9 +112,11 @@ define a suitably-named constant for each value::
|
||||
(JUNIOR, 'Junior'),
|
||||
(SENIOR, 'Senior'),
|
||||
)
|
||||
year_in_school = models.CharField(max_length=2,
|
||||
choices=YEAR_IN_SCHOOL_CHOICES,
|
||||
default=FRESHMAN)
|
||||
year_in_school = models.CharField(
|
||||
max_length=2,
|
||||
choices=YEAR_IN_SCHOOL_CHOICES,
|
||||
default=FRESHMAN,
|
||||
)
|
||||
|
||||
def is_upperclass(self):
|
||||
return self.year_in_school in (self.JUNIOR, self.SENIOR)
|
||||
|
||||
Reference in New Issue
Block a user