Commits

Benjamin Klüglein committed 9d41176

Added UploadTicket model

  • Participants
  • Parent commits 37db81c
  • Branches upload_ticket

Comments (0)

Files changed (1)

File upload/models.py

     
     def filename(self):
         return path.basename(self.file_on_fs.name)
+
+class UploadTicket(models.Model):
+    referenced_file = models.ForeignKey(File)
+    identifier = models.CharField(max_length=32, blank=False)
+    created_by = models.ForeignKey(User)