Skip to content

Commit

Permalink
Merge pull request #64 from jlmadurga/feature/kik_integration
Browse files Browse the repository at this point in the history
Remove integrity in kik
  • Loading branch information
jlmadurga committed May 5, 2016
2 parents 72b5fc9 + 29ad7a7 commit a3c5b02
Show file tree
Hide file tree
Showing 3 changed files with 24 additions and 3 deletions.
23 changes: 23 additions & 0 deletions microbot/migrations/0006_auto_20160505_0352.py
@@ -0,0 +1,23 @@
# -*- coding: utf-8 -*-
# Generated by Django 1.9.4 on 2016-05-05 08:52
from __future__ import unicode_literals

from django.db import migrations


class Migration(migrations.Migration):

dependencies = [
('microbot', '0005_auto_20160428_0510'),
]

operations = [
migrations.AlterUniqueTogether(
name='kikchatstate',
unique_together=set([]),
),
migrations.AlterUniqueTogether(
name='kikmessage',
unique_together=set([]),
),
]
1 change: 0 additions & 1 deletion microbot/models/kik_api.py
Expand Up @@ -44,7 +44,6 @@ class Meta:
verbose_name = 'Kik Message'
verbose_name_plural = 'Kik Messages'
ordering = ['-timestamp', ]
unique_together = ('message_id', 'chat')

def __str__(self):
return "(%s,%s,%s)" % (self.message_id, self.chat, self.body or '(no text)')
Expand Down
3 changes: 1 addition & 2 deletions microbot/models/state.py
Expand Up @@ -70,8 +70,7 @@ class KikChatState(AbsChatState):
class Meta:
verbose_name = _('Kik Chat State')
verbose_name_plural = _('Kik Chats States')
unique_together = ('chat', 'user')


def __str__(self):
return "(%s:%s)" % (str(self.chat.id), self.state.name)

Expand Down

0 comments on commit a3c5b02

Please sign in to comment.