Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Removing the settings.PRODUCTION check on sending pubsub notifications.

  • Loading branch information...
commit 940e6acf2d111cd449e28f82e80cefd9e8e6177e 1 parent cab507a
@justinabrahms justinabrahms authored
Showing with 3 additions and 3 deletions.
  1. +3 −3 django_website/aggregator/models.py
View
6 django_website/aggregator/models.py
@@ -45,13 +45,13 @@ def __unicode__(self):
def save(self, **kwargs):
super(Feed, self).save(**kwargs)
- if settings.PRODUCTION and self.approval_status == APPROVED_FEED:
+ # TODO(justinlilly): It would be nice if we didn't send these in development
+ if self.approval_status == APPROVED_FEED:
Subscription.objects.subscribe(self.feed_url, settings.PUSH_HUB)
def delete(self, **kwargs):
super(Feed, self).delete(**kwargs)
- if settings.PRODUCTION:
- Subscription.objects.unsubscribe(self.feed_url, settings.PUSH_HUB)
+ Subscription.objects.unsubscribe(self.feed_url, settings.PUSH_HUB)
class FeedItemManager(models.Manager):
def create_or_update_by_guid(self, guid, **kwargs):

0 comments on commit 940e6ac

Please sign in to comment.
Something went wrong with that request. Please try again.