The Target table has the members "file_name" and "file_size" for its image file(s). However, a target can and mostly likely will have multiple generated images, and while the name will be the same (modulo the file name extensions from Build.image_fstypes) each image will have a different file size. The requirement is to create a new table of Target image names and sizes, keyed to the parent Target pk. For example: class Target_Image_File(models.Model): target = models.ForeignKey(Target,related_name='target_image') file_name = models.FilePathField(max_length=255, blank=True) file_size = models.IntegerField()
Added, data is not collected yet.
Database change merged into toaster/master.
Verified in master:ac4ff568f5b2ad4f50a1b7b60797e7b797c314bb