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

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

@@ -23,13 +23,16 @@ class I18nSitemap(Sitemap):
23 23
     language.
24 24
     """
25 25
     def __init__(self, language):
26
+        print("I18nSitemap! __init__")
26 27
         self.language = language
27 28
         self.original_language = get_language()
28 29
 
29 30
     def get_obj_location(self, obj):
31
+        print("I18nSitemap! get_obj_location")
30 32
         return obj.get_absolute_url()
31 33
 
32 34
     def location(self, obj):
35
+        print("I18nSitemap! location")
33 36
         activate(self.language)
34 37
         location = self.get_obj_location(obj)
35 38
         activate(self.original_language)
@@ -39,6 +42,7 @@ class I18nSitemap(Sitemap):
39 42
 class StaticSitemap(I18nSitemap):
40 43
 
41 44
     def items(self):
45
+        print("StaticSitemap! items")
42 46
         return ['home', ]
43 47
 
44 48
     def get_obj_location(self, obj):

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