Loading docs/ref/class-based-views/generic-editing.txt +1 −1 Original line number Diff line number Diff line Loading @@ -16,8 +16,8 @@ editing content: has been defined. For these cases we assume the following has been defined in `myapp/models.py`:: from django import models from django.core.urlresolvers import reverse from django.db import models class Author(models.Model): name = models.CharField(max_length=200) Loading docs/topics/class-based-views/generic-editing.txt +6 −6 Original line number Diff line number Diff line Loading @@ -90,8 +90,8 @@ class: .. code-block:: python # models.py from django import models from django.core.urlresolvers import reverse from django.db import models class Author(models.Model): name = models.CharField(max_length=200) Loading Loading @@ -160,8 +160,8 @@ you can use a custom :class:`ModelForm` to do this. First, add the foreign key relation to the model:: # models.py from django import models from django.contrib.auth import User from django.db import models class Author(models.Model): name = models.CharField(max_length=200) Loading Loading
docs/ref/class-based-views/generic-editing.txt +1 −1 Original line number Diff line number Diff line Loading @@ -16,8 +16,8 @@ editing content: has been defined. For these cases we assume the following has been defined in `myapp/models.py`:: from django import models from django.core.urlresolvers import reverse from django.db import models class Author(models.Model): name = models.CharField(max_length=200) Loading
docs/topics/class-based-views/generic-editing.txt +6 −6 Original line number Diff line number Diff line Loading @@ -90,8 +90,8 @@ class: .. code-block:: python # models.py from django import models from django.core.urlresolvers import reverse from django.db import models class Author(models.Model): name = models.CharField(max_length=200) Loading Loading @@ -160,8 +160,8 @@ you can use a custom :class:`ModelForm` to do this. First, add the foreign key relation to the model:: # models.py from django import models from django.contrib.auth import User from django.db import models class Author(models.Model): name = models.CharField(max_length=200) Loading