Ledger Nano X - The secure hardware wallet
SHARE
TWEET

Untitled

a guest Mar 28th, 2020 71 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. class Chat(models.Model):
  2.     name = models.CharField("Названия чата", max_length=250)
  3.     chat_id = models.CharField("ID чата", max_length=50)
  4.  
  5.     def __str__(self):
  6.         return self.name
  7.  
  8.     class Meta:
  9.         verbose_name = "Чат"
  10.         verbose_name_plural = "Чаты"
  11.  
  12.  
  13. class File(models.Model):
  14.     name = models.CharField("Имя файла", max_length=250)
  15.     file_id = models.CharField("ID файла", max_length=250)
  16.     chat = models.ForeignKey(Chat, max_length=250, on_delete=models.SET_NULL, null=True)
  17.  
  18.     updated = models.DateTimeField("Дата изменения", default=datetime.datetime.now())
  19.     created = models.DateTimeField("Дата создания", default=datetime.datetime.now())
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
Top