mirror of
https://github.com/django/django.git
synced 2025-08-03 02:23:12 +00:00
Fixed #25331 -- Removed trailing blank lines in docstrings.
This commit is contained in:
parent
d4b10a7256
commit
5153a3bfdc
60 changed files with 5 additions and 123 deletions
|
@ -71,7 +71,6 @@ A model with useful documentation might look like this::
|
|||
"""
|
||||
Stores a single blog entry, related to :model:`blog.Blog` and
|
||||
:model:`auth.User`.
|
||||
|
||||
"""
|
||||
slug = models.SlugField(help_text="A short label, generally used in URLs.")
|
||||
author = models.ForeignKey(
|
||||
|
@ -115,7 +114,6 @@ For example::
|
|||
**Template:**
|
||||
|
||||
:template:`myapp/my_template.html`
|
||||
|
||||
"""
|
||||
context = {'mymodel': MyModel.objects.get(slug=slug)}
|
||||
return render(request, 'myapp/my_template.html', context)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue