Alphabetized imports in various docs.

Follow-up of d97cce3409 and 7d3fe36c62.
This commit is contained in:
Mariusz Felisiak 2018-05-12 19:37:42 +02:00 committed by GitHub
parent 1b7d524cfa
commit 35319bf12c
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
36 changed files with 71 additions and 71 deletions

View file

@ -38,8 +38,8 @@ many projects they are typically the most commonly used views.
**Example myapp/views.py**::
from django.views.generic.detail import DetailView
from django.utils import timezone
from django.views.generic.detail import DetailView
from articles.models import Article
@ -107,8 +107,8 @@ many projects they are typically the most commonly used views.
**Example views.py**::
from django.views.generic.list import ListView
from django.utils import timezone
from django.views.generic.list import ListView
from articles.models import Article

View file

@ -15,8 +15,8 @@ editing content:
Some of the examples on this page assume that an ``Author`` model has been
defined as follows in ``myapp/models.py``::
from django.urls import reverse
from django.db import models
from django.urls import reverse
class Author(models.Model):
name = models.CharField(max_length=200)
@ -226,8 +226,8 @@ editing content:
**Example myapp/views.py**::
from django.views.generic.edit import DeleteView
from django.urls import reverse_lazy
from django.views.generic.edit import DeleteView
from myapp.models import Author
class AuthorDelete(DeleteView):