diff --git a/docs/topics/class-based-views/generic-editing.txt b/docs/topics/class-based-views/generic-editing.txt index 74d19d53b1..059342afd8 100644 --- a/docs/topics/class-based-views/generic-editing.txt +++ b/docs/topics/class-based-views/generic-editing.txt @@ -180,7 +180,7 @@ you can use a custom :class:`~django.forms.ModelForm` to do this. First, add the foreign key relation to the model:: # models.py - from django.contrib.auth import User + from django.contrib.auth.models import User from django.db import models class Author(models.Model):