Beispiel #1
0
 def transform_bio(self, obj, value):
     return {
         'value': value,
         'html': unicode(markdown(value)),
         'privacy': obj.get_privacy_bio_display(),
     }
Beispiel #2
0
 def transform_bio(self, obj, value):
     return {
         'value': value,
         'html': unicode(markdown(value)),
         'privacy': obj.get_privacy_bio_display(),
     }
Beispiel #3
0
 def test_markdown(self, clean_mock, markdown_mock):
     returned_text = helpers.markdown('***foo***', allowed_tags=['strong'])
     eq_(returned_text, '<strong>foo</strong>')
     ok_(clean_mock.called)
     ok_(markdown_mock.called)
Beispiel #4
0
 def test_markdown(self, clean_mock, markdown_mock):
     returned_text = helpers.markdown('***foo***', allowed_tags=['strong'])
     eq_(returned_text, '<strong>foo</strong>')
     ok_(clean_mock.called)
     ok_(markdown_mock.called)
Beispiel #5
0
 def transform_bio(self, obj, value):
     return {"value": value, "html": unicode(markdown(value)), "privacy": obj.get_privacy_bio_display()}