Skip to content

Commit

Permalink
Plugins require registration now
Browse files Browse the repository at this point in the history
  • Loading branch information
davidmiller committed May 24, 2015
1 parent cedd6a4 commit 1f19014
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions dischargesummary/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,12 +2,12 @@
Plugin definition for the dischargesummary OPAL plugin
"""
from django.conf import settings
from opal.core.plugins import OpalPlugin
from opal.core import plugins
from opal.utils import stringport, camelcase_to_underscore

from dischargesummary.urls import urlpatterns

class DischargesummaryPlugin(OpalPlugin):
class DischargesummaryPlugin(plugins.OpalPlugin):
"""
Main entrypoint to expose this plugin to our OPAL application.
"""
Expand Down Expand Up @@ -47,6 +47,7 @@ def roles(self, user):
"""
return {}

plugins.register(DischargesummaryPlugin)

# So we only do it once
IMPORTED_FROM_APPS = False
Expand Down

0 comments on commit 1f19014

Please sign in to comment.