From 7ed163bdaa586e799e0f48901f2df801f0444e86 Mon Sep 17 00:00:00 2001 From: luxagraf Date: Tue, 28 Jun 2016 20:24:55 -0400 Subject: testing code to post photo to facebook --- app/syndication/models.py | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) (limited to 'app/syndication/models.py') 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) -- cgit v1.2.3-70-g09d2