-
-
Save blturner/6657217 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
class MarkupInlineWidget(MultiWidget): | |
def __init__(self, attrs=None): | |
_widgets = ( | |
AdminMarkupTextareaWidget(), | |
InlineWidget(), | |
) | |
super(MarkupInlineWidget, self).__init__(_widgets, attrs) | |
def decompress(self, value): | |
if value: | |
return [value] | |
return [None] |
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
class MarkupInlineWidget(InlineWidget, AdminMarkupTextareaWidget): | |
pass |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment