Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse code

Fixed #11460 - Added a FAQ regarding missing rows in the admin.

  • Loading branch information...
commit d08096317ab598b7a350d61b9b8396a3be7b8c79 1 parent 84fa909
Tim Graham authored September 27, 2012
13  docs/faq/admin.txt
@@ -68,6 +68,18 @@ For example, if your ``list_filter`` includes ``sites``, and there's only one
68 68
 site in your database, it won't display a "Site" filter. In that case,
69 69
 filtering by site would be meaningless.
70 70
 
  71
+Some objects aren't appearing in the admin.
  72
+-------------------------------------------
  73
+
  74
+Inconsistent row counts may be caused by missing foreign key values or a
  75
+foreign key field incorrectly set to :attr:`null=False
  76
+<django.db.models.Field.null>`. If you have a record with a
  77
+:class:`~django.db.models.ForeignKey` pointing to a non-existent object and
  78
+that foreign key is included is
  79
+:attr:`~django.contrib.admin.ModelAdmin.list_display`, the record will not be
  80
+shown in the admin changelist because the Django model is declaring an
  81
+integrity constraint that is not implemented at the database level.
  82
+
71 83
 How can I customize the functionality of the admin interface?
72 84
 -------------------------------------------------------------
73 85
 
@@ -104,4 +116,3 @@ example, some browsers may not support rounded corners. These are considered
104 116
 acceptable variations in rendering.
105 117
 
106 118
 .. _YUI's A-grade: http://yuilibrary.com/yui/docs/tutorials/gbs/
107  
-
2  docs/ref/contrib/admin/index.txt
@@ -60,6 +60,8 @@ Other topics
60 60
     For information about serving the static files (images, JavaScript, and
61 61
     CSS) associated with the admin in production, see :ref:`serving-files`.
62 62
 
  63
+    Having problems?  Try :doc:`/faq/admin`.
  64
+
63 65
 ``ModelAdmin`` objects
64 66
 ======================
65 67
 

0 notes on commit d080963

Please sign in to comment.
Something went wrong with that request. Please try again.