Cleanup
[wolnelektury.git] / src / funding / models.py
index 089b875..3280d64 100644 (file)
@@ -70,10 +70,7 @@ class Offer(models.Model):
 
     def clear_cache(self):
         clear_cached_renders(self.top_bar)
-        clear_cached_renders(self.top_bar_2022)
-        clear_cached_renders(self.list_bar)
         clear_cached_renders(self.detail_bar)
-        clear_cached_renders(self.detail_bar_2022)
         clear_cached_renders(self.status)
         clear_cached_renders(self.status_more)
 
@@ -211,33 +208,6 @@ class Offer(models.Model):
             'show_title_calling': True,
         }
 
-    @cached_render('funding/includes/funding.html')
-    def top_bar(self):
-        ctx = self.basic_info()
-        ctx.update({
-            'link': True,
-            'closeable': True,
-            'add_class': 'funding-top-header',
-        })
-        return ctx
-
-    @cached_render('funding/includes/funding.html')
-    def list_bar(self):
-        ctx = self.basic_info()
-        ctx.update({
-            'link': True,
-            'show_title_calling': False,
-        })
-        return ctx
-
-    @cached_render('funding/includes/funding.html')
-    def detail_bar(self):
-        ctx = self.basic_info()
-        ctx.update({
-            'show_title': False,
-        })
-        return ctx
-
     @cached_render('funding/includes/offer_status.html')
     def status(self):
         return {'offer': self}
@@ -246,8 +216,8 @@ class Offer(models.Model):
     def status_more(self):
         return {'offer': self}
 
-    @cached_render('funding/2022/includes/funding.html')
-    def top_bar_2022(self):
+    @cached_render('funding/includes/funding.html')
+    def top_bar(self):
         ctx = self.basic_info()
         ctx.update({
             'link': True,
@@ -256,8 +226,8 @@ class Offer(models.Model):
         })
         return ctx
 
-    @cached_render('funding/2022/includes/funding.html')
-    def detail_bar_2022(self):
+    @cached_render('funding/includes/funding.html')
+    def detail_bar(self):
         ctx = self.basic_info()
         ctx.update({
             'show_title': False,