Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
also, two smaller fixes
- Loading branch information
Showing
5 changed files
with
27 additions
and
5 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
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 | Original file line | Diff line number | Diff line change |
---|---|---|---|
@@ -0,0 +1,2 @@ | |||
# -*- coding: utf-8 -*- | |||
|
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 | Original file line | Diff line number | Diff line change |
---|---|---|---|
@@ -0,0 +1,2 @@ | |||
# -*- coding: utf-8 -*- | |||
|
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 | Original file line | Diff line number | Diff line change |
---|---|---|---|
@@ -0,0 +1,17 @@ | |||
# -*- coding: utf-8 -*- | |||
|
|||
from django.utils.translation import ugettext_lazy as _ | |||
|
|||
from filer.fields.image import FilerImageField | |||
|
|||
from cmsplugin_text_ng.models import TextNGVariableBase | |||
from cmsplugin_text_ng.type_registry import register_type | |||
|
|||
class TextNGVariableFilerImage(TextNGVariableBase): | |||
value = FilerImageField(null=True, blank=True, verbose_name=_('value')) | |||
|
|||
class Meta: | |||
verbose_name = _('image') | |||
verbose_name_plural = _('images') | |||
|
|||
register_type('image', TextNGVariableFilerImage) |
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