summaryrefslogtreecommitdiff
path: root/app/notes
diff options
context:
space:
mode:
authorluxagraf <sng@luxagraf.net>2014-06-04 21:01:42 +0000
committerluxagraf <sng@luxagraf.net>2014-06-04 21:01:42 +0000
commit1e17a210f01aead02e57ee1526c667bb60084038 (patch)
tree5780f1560ba24fae109adbc22d5a458b898a7576 /app/notes
parentd63acfebd400da4e2b0286620d58e122c455acd8 (diff)
quick bug fixes for note model
Diffstat (limited to 'app/notes')
-rw-r--r--app/notes/models.py3
1 files changed, 2 insertions, 1 deletions
diff --git a/app/notes/models.py b/app/notes/models.py
index 3b16588..6ce912d 100644
--- a/app/notes/models.py
+++ b/app/notes/models.py
@@ -20,6 +20,7 @@ class Note(models.Model):
location = models.ForeignKey(Location, null=True, blank=True)
body_html = models.TextField(blank=True)
body_markdown = models.CharField('Note', max_length=450)
+ twitter_id = models.CharField('twitter_id', max_length=450)
def __str__(self):
return self.slug
@@ -70,4 +71,4 @@ def post_save_events(sender, instance, **kwargs):
geo_id = geo['result']['places'][0]['id']
status = t.update_status(status='Look, Twitter', place_id=geo_id)
instance.twitter_id = status['id']
- print instance.twitter_id
+ print(instance.twitter_id)