diff options
Diffstat (limited to 'app/notes/models.py')
-rw-r--r-- | app/notes/models.py | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/app/notes/models.py b/app/notes/models.py index 00b9e33..40323b1 100644 --- a/app/notes/models.py +++ b/app/notes/models.py @@ -16,7 +16,7 @@ from django.dispatch import receiver from django.conf import settings import requests from locations.models import Location - +from .build import * from twython import Twython # http://freewisdom.org/projects/python-markdown/ import markdown @@ -123,7 +123,8 @@ def post_save_events(sender, instance, **kwargs): post_save.disconnect(post_save_events, sender=Note) instance.save() post_save.connect(post_save_events, sender=Note) - sender.build() + b = BuildNotes() + b.build() def write_note(sender, instance, **kwargs): |