Skip to content

Commit

Permalink
Merge branch 'master' into 0.4.2.1
Browse files Browse the repository at this point in the history
  • Loading branch information
Jonas Hagstedt committed May 8, 2015
2 parents a2c60e3 + 5d2e52f commit e262479
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 3 deletions.
4 changes: 2 additions & 2 deletions docs/settings.md
Original file line number Diff line number Diff line change
Expand Up @@ -87,10 +87,10 @@ These settings are available from ```window.swampdragon_settings```.
</script>


If you want to access the url for your SwampDragon instance from JavaScript, you can do so with ```window.swamp_dargon_host```.
If you want to access the url for your SwampDragon instance from JavaScript, you can do so with ```window.swamp_dragon_host```.

<script>
// ouput http://localhost:9999 assuming you are running your server on that url
console.log(window.swamp_dargon_host);
console.log(window.swamp_dragon_host);
</script>

1 change: 1 addition & 0 deletions swampdragon/pubsub_providers/model_publisher.py
Original file line number Diff line number Diff line change
Expand Up @@ -27,5 +27,6 @@ def publish_model(model_instance, serializer, action, changed_fields=None):
publish_data = {'data': {'id': model_instance.pk}}
publish_data['action'] = PUBACTIONS.deleted
for channel in remove_from_channels:
publish_data['channel'] = channel
publisher.publish(channel, publish_data)
publish_data['channel'] = channel
6 changes: 5 additions & 1 deletion tests/test_same_origin.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,8 @@
from http.cookies import SimpleCookie
try:
from http.cookies import SimpleCookie
except ImportError:
from Cookie import SimpleCookie

from django.conf import settings
from sockjs.tornado.session import ConnectionInfo
from swampdragon.connections.sockjs_connection import SubscriberConnection
Expand Down

0 comments on commit e262479

Please sign in to comment.