Last active
July 24, 2018 08:47
-
-
Save webbyfox/9e0f4ee5bdb467b647c10c08ea5f4f19 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
from cms.app_base import CMSAppConfig | |
from .models import TestModel1, TestModel2 | |
class TestModel1Config(): | |
fields = ['field1', 'field2'] | |
model = TestModel1 | |
# any other configuration including admin listing can go here | |
class TestModel2Config(): | |
fields = ['field1', 'field2'] | |
model = TestModel2 | |
# any other configuration including admin listing can go here | |
class CMSApp2Config(CMSAppConfig): | |
djangocms_internalsearch_enabled = True | |
internalsearch_config_list = [TestModel1Config, TestModel2Config] |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
internalsearch_models