浏览代码

Fixed #22575 -- Fixed typo in docs/topics/class-based-views/generic-editing.txt.

Thanks adminq80 at gmail.com.
Tim Graham 11 年之前
父节点
当前提交
87776859af
共有 1 个文件被更改,包括 1 次插入1 次删除
  1. 1 1
      docs/topics/class-based-views/generic-editing.txt

+ 1 - 1
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):