Use proper names for tasks

This commit is contained in:
bakatrouble 2019-03-10 10:20:53 +03:00
parent 83d752c1a2
commit add2c9597a

View File

@ -30,7 +30,7 @@ class Feed(models.Model):
self.lock = True self.lock = True
self.save() self.save()
execute_feed.delay(self.pk) execute_feed.apply_async(args=(self.pk,), shadow=str(self))
def __str__(self): def __str__(self):
return f'#{self.pk} {self.title}' return f'#{self.pk} {self.title}'