Skip to content

Commit c6cf30c

Browse files
committed
fixed plugin class names and added whitespace.
1 parent f36f748 commit c6cf30c

File tree

1 file changed

+10
-4
lines changed

1 file changed

+10
-4
lines changed

vj_cms/cms_plugins.py

+10-4
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@
1515
client = VJClient(settings.VJ_API_URL)
1616

1717
@plugin_pool.register_plugin
18-
class MobileSpeechbubble(CMSPluginBase):
18+
class MobileSpeechbubblePlugin(CMSPluginBase):
1919
name = 'Mobile Speechbubble'
2020
model = CMSPlugin
2121
render_template = "vauhtijuoksu/plugins/mobilespeechbubble.html"
@@ -25,8 +25,10 @@ class MobileSpeechbubble(CMSPluginBase):
2525
def render(self, context, instance, placeholder):
2626
context = super().render(context, instance, placeholder)
2727
return context
28+
29+
2830
@plugin_pool.register_plugin
29-
class TweakSettings(CMSPluginBase):
31+
class TweakSettingsPlugin(CMSPluginBase):
3032
name = 'Tweak Settings'
3133
model = TweakSettings
3234
render_template = "vauhtijuoksu/plugins/tweak_settings.html"
@@ -35,8 +37,9 @@ def render(self, context, instance, placeholder):
3537
context = super().render(context, instance, placeholder)
3638
return context
3739

40+
3841
@plugin_pool.register_plugin
39-
class AnchorLink(CMSPluginBase):
42+
class AnchorLinkPlugin(CMSPluginBase):
4043
name = 'Anchor link'
4144
model = AnchorLink
4245
render_template = "vauhtijuoksu/plugins/anchor.html"
@@ -45,8 +48,9 @@ def render(self, context, instance, placeholder):
4548
context = super().render(context, instance, placeholder)
4649
return context
4750

51+
4852
@plugin_pool.register_plugin
49-
class PriorityMessage(CMSPluginBase):
53+
class PriorityMessagePlugin(CMSPluginBase):
5054
name = 'Prioritymessage content'
5155
model = PriorityMessages
5256
render_template = "vauhtijuoksu/plugins/prioritymessages.html"
@@ -69,6 +73,7 @@ def render(self, context, instance, placeholder):
6973
context['divider_name'] = f'divider-{randint(0, 3)}'
7074
return context
7175

76+
7277
@plugin_pool.register_plugin
7378
class TimetablePlugin(CMSPluginBase):
7479
name = 'Timetable'
@@ -162,6 +167,7 @@ def render(self, context, instance, placeholder):
162167
context['games'] = days[:]
163168
return context
164169

170+
165171
@plugin_pool.register_plugin
166172
class FloatycharsPlugin(CMSPluginBase):
167173
name = 'Floatychars'

0 commit comments

Comments
 (0)