Add: new fields image size, source, extra file
This commit is contained in:
parent
e41992917a
commit
0151f5bd3f
1 changed files with 12 additions and 6 deletions
|
@ -63,12 +63,18 @@ class User_Banner_Images(models.Model):
|
|||
|
||||
class Submission_File(models.Model):
|
||||
|
||||
file_hash = models.CharField(unique=True, max_length=64)
|
||||
file_name = models.CharField(max_length=150, blank=True)
|
||||
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)
|
||||
date_added = models.DateTimeField(auto_now_add=True, editable=True)
|
||||
file_hash = models.CharField(unique=True, max_length=64)
|
||||
file_name = models.CharField(max_length=150, blank=True)
|
||||
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)
|
||||
date_added = models.DateTimeField(auto_now_add=True, editable=True)
|
||||
|
||||
extra_file = models.BooleanField(default=False)
|
||||
file_source = models.CharField(max_length=32, blank=True)
|
||||
|
||||
image_height = models.PositiveIntegerField(null=True)
|
||||
image_width = models.PositiveIntegerField(null=True)
|
||||
|
||||
class Meta:
|
||||
verbose_name = _("Submission File")
|
||||
|
|
Loading…
Reference in a new issue