From 148fc0afae01b19b081ed2a1132d16e92dd289d9 Mon Sep 17 00:00:00 2001 From: bakatrouble Date: Wed, 30 Jan 2019 23:20:30 +0300 Subject: [PATCH] trying to fix initial messages loading --- aggregator/models.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/aggregator/models.py b/aggregator/models.py index 831cfb4..9558917 100644 --- a/aggregator/models.py +++ b/aggregator/models.py @@ -11,14 +11,14 @@ from pyrogram import Chat as PyrogramChat, Message as PyrogramMessage class AggregationSource(models.Model): owner = models.ForeignKey(settings.AUTH_USER_MODEL, on_delete=models.CASCADE) title = models.CharField(max_length=64) - chat_id = models.CharField(db_index=True, max_length=64) + chat_id = models.BigIntegerField(db_index=True) def __str__(self): return self.title class Chat(models.Model): - chat_id = models.CharField(db_index=True, max_length=64) + chat_id = models.BigIntegerField(db_index=True) title = models.TextField() username = models.CharField(max_length=64, null=True, blank=True) photo = models.ImageField(null=True, blank=True)