Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #9 from czpython/feature/ckeditor
Adds cms 2.4 & 3.x compatibility.
- Loading branch information
Showing
10 changed files
with
54 additions
and
32 deletions.
There are no files selected for viewing
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,4 @@ | ||
Marco Bonetti | ||
Kristian Øllegaard | ||
Benjamin Wohlwend | ||
Benjamin Wohlwend | ||
Paulo Alvarado |
This file contains 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
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1 @@ | ||
__version__ = '0.3' | ||
__version__ = '0.4' |
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,11 +1,13 @@ | ||
from cmsplugin_text_ng.models import TextNGTemplate, TextNGTemplateCategory | ||
from django.contrib import admin | ||
|
||
from cmsplugin_text_ng.models import TextNGTemplate, TextNGTemplateCategory | ||
|
||
|
||
class TextNGTemplateAdmin(admin.ModelAdmin): | ||
list_display = ('title', 'category', 'path') | ||
list_filter = ('category',) | ||
search_fields = ('title', 'category', 'path') | ||
|
||
admin.site.register(TextNGTemplate, TextNGTemplateAdmin) | ||
|
||
admin.site.register(TextNGTemplateCategory) | ||
admin.site.register(TextNGTemplateCategory) |
This file contains 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
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
from django.conf import settings | ||
from django.core.exceptions import ImproperlyConfigured | ||
|
||
if 'djangocms_text_ckeditor' in settings.INSTALLED_APPS: | ||
from djangocms_text_ckeditor.models import AbstractText | ||
from djangocms_text_ckeditor.cms_plugins import TextPlugin | ||
else: | ||
try: | ||
from cms.plugins.text.models import AbstractText | ||
from cms.plugins.text.cms_plugins import TextPlugin | ||
except ImportError: | ||
raise ImproperlyConfigured('For django-cms >= 3 you need to install djangocms-text-ckeditor') |
This file contains 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
This file contains 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
This file contains 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
This file contains 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