Add: szie field to the other file models
This commit is contained in:
parent
0151f5bd3f
commit
9d43ca1cc5
1 changed files with 4 additions and 0 deletions
|
@ -28,6 +28,7 @@ class User_Profile_Images(models.Model):
|
|||
file = models.FileField(upload_to=get_upload_to_profile, blank=True)
|
||||
file_mime = models.CharField(max_length=64, blank=True)
|
||||
file_ext = models.CharField(max_length=64, blank=True)
|
||||
size = models.PositiveIntegerField(null=True)
|
||||
date_added = models.DateTimeField(auto_now_add=True, editable=True)
|
||||
|
||||
class Meta:
|
||||
|
@ -48,6 +49,7 @@ class User_Banner_Images(models.Model):
|
|||
file = models.FileField(upload_to=get_upload_to_banner, blank=True)
|
||||
file_mime = models.CharField(max_length=64, blank=True)
|
||||
file_ext = models.CharField(max_length=64, blank=True)
|
||||
size = models.PositiveIntegerField(null=True)
|
||||
date_added = models.DateTimeField(auto_now_add=True, editable=True)
|
||||
|
||||
class Meta:
|
||||
|
@ -68,6 +70,7 @@ class Submission_File(models.Model):
|
|||
file = models.FileField(upload_to=get_upload_to_submission, blank=True)
|
||||
file_mime = models.CharField(max_length=64, blank=True)
|
||||
file_ext = models.CharField(max_length=64, blank=True)
|
||||
size = models.PositiveIntegerField(null=True)
|
||||
date_added = models.DateTimeField(auto_now_add=True, editable=True)
|
||||
|
||||
extra_file = models.BooleanField(default=False)
|
||||
|
@ -94,6 +97,7 @@ class Metadata_Files(models.Model):
|
|||
file = models.FileField(upload_to=get_upload_to_metadata, blank=True)
|
||||
file_mime = models.CharField(max_length=64, blank=True)
|
||||
file_ext = models.CharField(max_length=64, blank=True)
|
||||
size = models.PositiveIntegerField(null=True)
|
||||
date_added = models.DateTimeField(auto_now_add=True, editable=True)
|
||||
|
||||
class Meta:
|
||||
|
|
Loading…
Reference in a new issue