fix
This commit is contained in:
@@ -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):
|
||||
|
||||
Reference in New Issue
Block a user