浏览代码

auto commit

master
jfinn 8 个月前
父节点
当前提交
cbfd90e954
共有 1 个文件被更改,包括 3 次插入0 次删除
  1. 3
    0
      sandbox/apps/sitemaps.py

+ 3
- 0
sandbox/apps/sitemaps.py 查看文件

42
         return ['home', ]
42
         return ['home', ]
43
 
43
 
44
     def get_obj_location(self, obj):
44
     def get_obj_location(self, obj):
45
+        print("StaticSitemap!")
45
         return reverse(obj)
46
         return reverse(obj)
46
 
47
 
47
 
48
 
48
 class ProductSitemap(I18nSitemap):
49
 class ProductSitemap(I18nSitemap):
49
 
50
 
50
     def items(self):
51
     def items(self):
52
+        print("ProductSitemap!")
51
         return Product.objects.browsable()
53
         return Product.objects.browsable()
52
 
54
 
53
 
55
 
54
 class CategorySitemap(I18nSitemap):
56
 class CategorySitemap(I18nSitemap):
55
 
57
 
56
     def items(self):
58
     def items(self):
59
+        print("CategorySitemap!")
57
         return Category.objects.all()
60
         return Category.objects.all()
58
 
61
 
59
 
62
 

正在加载...
取消
保存