summaryrefslogtreecommitdiff
path: root/app/syndication/models.py
diff options
context:
space:
mode:
authorluxagraf <sng@luxagraf.net>2016-06-28 20:24:55 -0400
committerluxagraf <sng@luxagraf.net>2016-06-28 20:24:55 -0400
commit7ed163bdaa586e799e0f48901f2df801f0444e86 (patch)
tree63f0566ea514cf3fec09b64c40fe69dbcae82e0c /app/syndication/models.py
parentaa315bc4fb0b3f399a26cdefd3ee7eed195023fb (diff)
testing code to post photo to facebook
Diffstat (limited to 'app/syndication/models.py')
-rw-r--r--app/syndication/models.py7
1 files changed, 3 insertions, 4 deletions
diff --git a/app/syndication/models.py b/app/syndication/models.py
index a7a9343..32b8dd3 100644
--- a/app/syndication/models.py
+++ b/app/syndication/models.py
@@ -4,7 +4,7 @@ from django.contrib.contenttypes.fields import GenericForeignKey
from django.db.models.signals import post_save
from django.dispatch import receiver
-from .syndicators import post_to_medium, build_facebook_feed, post_photo_to_twitter, post_photo_to_flickr
+from .syndicators import post_to_medium, build_facebook_feed, post_to_twitter, post_photo_to_flickr
class Syndicate(models.Model):
@@ -48,9 +48,8 @@ def post_save_events(sender, update_fields, created, instance, **kwargs):
build_facebook_feed()
instance.status = 2
if item.name == "Twitter":
- if instance.content_type.name == "lux image":
- print("calling function")
- post_photo_to_twitter(instance.content_object)
+ print("calling function")
+ post_to_twitter(instance.content_object, instance.content_type.name)
if item.name == "Flickr":
if instance.content_type.name == "lux image":
post_photo_to_flickr(instance.content_object)