summaryrefslogtreecommitdiff
path: root/app/syndication/models.py
diff options
context:
space:
mode:
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)