Sfoglia il codice sorgente

Fix numchild value on root page

When set to 0, the homepage fails to appear in the explorer listing when viewing the root (because Treebeard thinks root is a leaf node and so doesn't bother querying the database for get_children).
Matt Westcott 7 anni fa
parent
commit
0afd24a0e5
1 ha cambiato i file con 1 aggiunte e 1 eliminazioni
  1. 1 1
      bakerydemo/base/fixtures/bakerydemo.json

+ 1 - 1
bakerydemo/base/fixtures/bakerydemo.json

@@ -1514,7 +1514,7 @@
   "fields": {
     "path": "0001",
     "depth": 1,
-    "numchild": 0,
+    "numchild": 1,
     "title": "Root",
     "draft_title": "Root",
     "slug": "root",