Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

Already on GitHub? Sign in to your account

added setting for enabling the select2 widget #21

Merged
merged 1 commit into from Mar 15, 2013

Conversation

Projects
None yet
3 participants
Contributor

alesdotio commented Mar 15, 2013

No description provided.

@digi604 digi604 commented on the diff Mar 15, 2013

stacks/cms_plugins.py
@@ -28,8 +30,9 @@ def render(self, context, instance, placeholder):
return context
def formfield_for_dbfield(self, db_field, request=None, **kwargs):
- if db_field.name == "stack":
- return StackSearchField(**kwargs)
+ if getattr(settings, 'DJANGOCMS_STACKS_USE_SELECT2', False):
@digi604

digi604 Mar 15, 2013

Member

could we check here if select2 is in INSTALLED_APPS as well and make the default TRUE if it is?

@stefanfoulis stefanfoulis added a commit that referenced this pull request Mar 15, 2013

@stefanfoulis stefanfoulis Merge pull request #21 from alesdotio/develop
added setting for enabling the select2 widget
d8b53d8

@stefanfoulis stefanfoulis merged commit d8b53d8 into divio:develop Mar 15, 2013

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment