fix
This commit is contained in:
parent
eaca6bd10f
commit
2fa592273d
@ -49,8 +49,7 @@ class Chat(models.Model):
|
|||||||
obj.photo_id = chat.photo.small_file_id
|
obj.photo_id = chat.photo.small_file_id
|
||||||
obj.save()
|
obj.save()
|
||||||
if created:
|
if created:
|
||||||
transaction.commit()
|
transaction.on_commit(lambda: collect_new_messages.delay(obj.pk))
|
||||||
collect_new_messages.delay(obj.pk)
|
|
||||||
return obj
|
return obj
|
||||||
|
|
||||||
def __str__(self):
|
def __str__(self):
|
||||||
|
Loading…
Reference in New Issue
Block a user