Skip to content

Commit

Permalink
Added IOrganizationController to MultilingualGroup
Browse files Browse the repository at this point in the history
This ensures that organizations are being translated just like groups
  • Loading branch information
Stefan Oderbolz authored and johnglover committed Oct 23, 2013
1 parent 3d36ae1 commit d30986d
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion ckanext/multilingual/plugin.py
@@ -1,7 +1,7 @@
import sets
import ckan
from ckan.plugins import SingletonPlugin, implements, IPackageController
from ckan.plugins import IGroupController, ITagController
from ckan.plugins import IGroupController, IOrganizationController, ITagController
import pylons
import ckan.logic.action.get as action_get
from pylons import config
Expand Down Expand Up @@ -253,6 +253,7 @@ class MultilingualGroup(SingletonPlugin):
'''
implements(IGroupController, inherit=True)
implements(IOrganizationController, inherit=True)

def before_view(self, data_dict):
translated_data_dict = translate_data_dict(data_dict)
Expand Down

0 comments on commit d30986d

Please sign in to comment.