Last active
July 20, 2018 10:01
-
-
Save webbyfox/04da01075d7f81d714d08082ef9f2d9c 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'] | |
# any other configuration including admin listing can go here | |
def get_model(): | |
return TestModel1 | |
class TestModel2Config(): | |
fields = ['field1', 'field2'] | |
# any other configuration including admin listing can go here | |
def get_model(): | |
return TestModel2 | |
class CMSApp2Config(CMSAppConfig): | |
djangocms_internalsearch_enabled = True | |
search_models = [TestModel1Config, TestModel2Config] |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment