15
15
client = VJClient (settings .VJ_API_URL )
16
16
17
17
@plugin_pool .register_plugin
18
- class MobileSpeechbubble (CMSPluginBase ):
18
+ class MobileSpeechbubblePlugin (CMSPluginBase ):
19
19
name = 'Mobile Speechbubble'
20
20
model = CMSPlugin
21
21
render_template = "vauhtijuoksu/plugins/mobilespeechbubble.html"
@@ -25,8 +25,10 @@ class MobileSpeechbubble(CMSPluginBase):
25
25
def render (self , context , instance , placeholder ):
26
26
context = super ().render (context , instance , placeholder )
27
27
return context
28
+
29
+
28
30
@plugin_pool .register_plugin
29
- class TweakSettings (CMSPluginBase ):
31
+ class TweakSettingsPlugin (CMSPluginBase ):
30
32
name = 'Tweak Settings'
31
33
model = TweakSettings
32
34
render_template = "vauhtijuoksu/plugins/tweak_settings.html"
@@ -35,8 +37,9 @@ def render(self, context, instance, placeholder):
35
37
context = super ().render (context , instance , placeholder )
36
38
return context
37
39
40
+
38
41
@plugin_pool .register_plugin
39
- class AnchorLink (CMSPluginBase ):
42
+ class AnchorLinkPlugin (CMSPluginBase ):
40
43
name = 'Anchor link'
41
44
model = AnchorLink
42
45
render_template = "vauhtijuoksu/plugins/anchor.html"
@@ -45,8 +48,9 @@ def render(self, context, instance, placeholder):
45
48
context = super ().render (context , instance , placeholder )
46
49
return context
47
50
51
+
48
52
@plugin_pool .register_plugin
49
- class PriorityMessage (CMSPluginBase ):
53
+ class PriorityMessagePlugin (CMSPluginBase ):
50
54
name = 'Prioritymessage content'
51
55
model = PriorityMessages
52
56
render_template = "vauhtijuoksu/plugins/prioritymessages.html"
@@ -69,6 +73,7 @@ def render(self, context, instance, placeholder):
69
73
context ['divider_name' ] = f'divider-{ randint (0 , 3 )} '
70
74
return context
71
75
76
+
72
77
@plugin_pool .register_plugin
73
78
class TimetablePlugin (CMSPluginBase ):
74
79
name = 'Timetable'
@@ -162,6 +167,7 @@ def render(self, context, instance, placeholder):
162
167
context ['games' ] = days [:]
163
168
return context
164
169
170
+
165
171
@plugin_pool .register_plugin
166
172
class FloatycharsPlugin (CMSPluginBase ):
167
173
name = 'Floatychars'
0 commit comments