Skip to content

Commit

Permalink
correct readme
Browse files Browse the repository at this point in the history
  • Loading branch information
poxip committed Jun 9, 2017
1 parent 2c781c7 commit 3dd68e6
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions README.rst
Original file line number Diff line number Diff line change
Expand Up @@ -33,8 +33,8 @@ Another step is to add event types to project settings, for example:
::

INTERCOM_EVENT_TYPES = (
("example type", _("Example Type")),
("generic type", _("Generic Type"))
("example", _("Example Type")),
("generic", _("Generic Type"))
)

The last thing is to specify Intercom credentials in project settings:
Expand All @@ -55,7 +55,7 @@ desired information, for example:

IntercomEvent.objects.create(
user=request.user, type="generic", text_content=post.content,
content_type=Post, object_id=post.id)
content_type=ContentType.objects.get_for_model(Post), object_id=post.id)

Then it will be automatically sent to the Intercom API. Unfortunately Intercom API has a tendency to go down often,
therefore to make sure all events will be sent, setup a cronjob running the ``resend_intercom_events`` command
Expand Down

0 comments on commit 3dd68e6

Please sign in to comment.