This commit is contained in:
2019-01-31 00:26:06 +03:00
parent 0334a04260
commit 2f1076b75b
2 changed files with 2 additions and 6 deletions
+2
View File
@@ -48,6 +48,8 @@ class Chat(models.Model):
obj.photo.save(os.path.basename(path), f, save=True)
obj.photo_id = chat.photo.small_file_id
obj.save()
if created:
transaction.on_commit(lambda: collect_new_messages.delay(obj.pk))
return obj
def __str__(self):