summaryrefslogtreecommitdiff
path: root/app/notes
diff options
context:
space:
mode:
authorluxagraf <sng@luxagraf.net>2014-06-09 09:03:01 -0400
committerluxagraf <sng@luxagraf.net>2014-06-09 09:03:01 -0400
commit0fe4e6faf9d5454d810e6fa97450107b0dcfd5cd (patch)
tree25deb85a3ca3c441f978a6c8c7701fc74d6cd9df /app/notes
parente69f7da0dc610528b19fa868f273ca4089b0f7fb (diff)
Styled notes section
Diffstat (limited to 'app/notes')
-rw-r--r--app/notes/models.py9
1 files changed, 4 insertions, 5 deletions
diff --git a/app/notes/models.py b/app/notes/models.py
index 0a9e5c6..00b9e33 100644
--- a/app/notes/models.py
+++ b/app/notes/models.py
@@ -1,20 +1,20 @@
'''
-TODO:
-
+TODO:
2) test urlize with markdown links
3) parse out markdown wrapped links for twitter
4) CSS
6) Write JavaScript to automatically place map on current location
'''
+import json
import datetime
from django.contrib.gis.db import models
from django.template.defaultfilters import slugify
from django.utils.html import urlize
-from django import forms
from django.db.models.signals import post_save
from django.dispatch import receiver
from django.conf import settings
+import requests
from locations.models import Location
from twython import Twython
@@ -96,8 +96,6 @@ class Note(models.Model):
super(Note, self).save()
-import requests
-import json
@receiver(post_save, sender=Note)
def post_save_events(sender, instance, **kwargs):
#if kwargs["created"]:
@@ -125,6 +123,7 @@ 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()
def write_note(sender, instance, **kwargs):