diff options
author | luxagraf <sng@luxagraf.net> | 2015-08-21 17:32:43 +0000 |
---|---|---|
committer | luxagraf <sng@luxagraf.net> | 2015-08-21 17:32:43 +0000 |
commit | 9bea55be28958f12107ed1147b1b403063812166 (patch) | |
tree | eba6c73647043a4293966d06f3b3cb6541ee538b /app/notes/models.py | |
parent | b98a093e737cc367bb8fbd714038e17882fe1ec5 (diff) |
fixed a naming bug
Diffstat (limited to 'app/notes/models.py')
-rw-r--r-- | app/notes/models.py | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/app/notes/models.py b/app/notes/models.py index a7ff599..25062d0 100644 --- a/app/notes/models.py +++ b/app/notes/models.py @@ -20,7 +20,7 @@ from .build import * from twython import Twython # http://freewisdom.org/projects/python-markdown/ import markdown - +#from twitter_text.autolink import Autolink def twitter_truncate(txt): return txt.split("|")[0] @@ -81,11 +81,10 @@ class Note(models.Model): return self.get_next_by_date_created() def render(self): - from twitter_text.autolink import Autolink opts = {'username_include_symbol': True} temp = " ".join(self.body_markdown.split("|")) html = markdown.markdown(urlize(temp, 45), extensions=['extra'], safe_mode=False) - return Autolink(html).auto_link_usernames_or_lists(opts) + return html def save(self): self.body_html = markdown.markdown(urlize(self.body_markdown, 45), extensions=['extra'], safe_mode=False) |