add signals

This commit is contained in:
2019-01-30 23:52:05 +03:00
parent 56f516e25b
commit fbfe97fe5b
3 changed files with 33 additions and 2 deletions
-2
View File
@@ -48,8 +48,6 @@ 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):