SHARE
TWEET

Untitled

a guest Nov 15th, 2017 51 in 8 days
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. class Doc(models.Model):
  2.     title = models.CharField(max_length=255, null=True, blank=True)
  3.     # file = models.FileField(upload_to='doc/uconvn/')
  4.     file = models.FileField(upload_to='')
  5.     uploaded_at = models.DateTimeField(auto_now_add=True)
  6.     parrent_dir =  models.ForeignKey('Category', null=True, blank=True)
  7.  
  8.     def __str__(self):
  9.         return str(self.file)#!!!!!!!!!!
  10.  
  11. class Dirs(models.Model):
  12.     dir_name = models.CharField(max_length=255, null=True)
RAW Paste Data
Top