Commits

Peter Sanchez committed 02ccf57

Fixed stupid bug in models.py. Forgot to pass self into subscrube/unsubscribe helper methods! grrr!

Comments (0)

Files changed (1)

djpubsubhubbub/models.py

             signals.verified.send(sender=subscription)
         return subscription
     
-    def subscribe(topic, **kwargs):
+    def subscribe(self, topic, **kwargs):
         return self.do_action(topic, mode='subscribe', **kwargs)
     
-    def unsubscribe(topic, **kwargs):
+    def unsubscribe(self, topic, **kwargs):
         return self.do_action(topic, mode='unsubscribe', **kwargs)
 
     def _get_hub(self, topic):