Kaydet (Commit) 00ff69a8 authored tarafından Aymeric Augustin's avatar Aymeric Augustin

Fixed #19283 -- Fixed typo in imports in CBV docs.

üst e27a43cc
...@@ -16,8 +16,8 @@ editing content: ...@@ -16,8 +16,8 @@ editing content:
has been defined. For these cases we assume the following has been defined has been defined. For these cases we assume the following has been defined
in `myapp/models.py`:: in `myapp/models.py`::
from django import models
from django.core.urlresolvers import reverse from django.core.urlresolvers import reverse
from django.db import models
class Author(models.Model): class Author(models.Model):
name = models.CharField(max_length=200) name = models.CharField(max_length=200)
......
...@@ -90,8 +90,8 @@ class: ...@@ -90,8 +90,8 @@ class:
.. code-block:: python .. code-block:: python
# models.py # models.py
from django import models
from django.core.urlresolvers import reverse from django.core.urlresolvers import reverse
from django.db import models
class Author(models.Model): class Author(models.Model):
name = models.CharField(max_length=200) name = models.CharField(max_length=200)
...@@ -160,8 +160,8 @@ you can use a custom :class:`ModelForm` to do this. First, add the ...@@ -160,8 +160,8 @@ you can use a custom :class:`ModelForm` to do this. First, add the
foreign key relation to the model:: foreign key relation to the model::
# models.py # models.py
from django import models
from django.contrib.auth import User from django.contrib.auth import User
from django.db import models
class Author(models.Model): class Author(models.Model):
name = models.CharField(max_length=200) name = models.CharField(max_length=200)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment