fix for prev

This commit is contained in:
mihalin 2022-04-09 05:58:37 +03:00
parent ff28f5cea5
commit e78b0c1150

View File

@ -62,8 +62,8 @@ class Bot(Model):
return (await self.owner).telegram_id return (await self.owner).telegram_id
async def is_promo(self): async def is_promo(self):
owner = await self.fetch_related("owner") await self.fetch_related("owner")
return await owner.is_promo() return await self.owner.is_promo()
class Meta: class Meta:
table = 'bot' table = 'bot'