Skip to content

Instantly share code, notes, and snippets.

@blturner
Created September 22, 2013 06:23
Show Gist options
  • Save blturner/6657217 to your computer and use it in GitHub Desktop.
Save blturner/6657217 to your computer and use it in GitHub Desktop.
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]
class MarkupInlineWidget(InlineWidget, AdminMarkupTextareaWidget):
pass
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment