jfinn пре 8 месеци
родитељ
комит
cbfd90e954
1 измењених фајлова са 3 додато и 0 уклоњено
  1. 3
    0
      sandbox/apps/sitemaps.py

+ 3
- 0
sandbox/apps/sitemaps.py Прегледај датотеку

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

Loading…
Откажи
Сачувај