Finished with Phase 2.6
This commit is contained in:
@@ -211,6 +211,8 @@ class Version(models.Model):
|
||||
mods_manifest = models.JSONField(default=dict, blank=True)
|
||||
animation_id = models.CharField(max_length=128, blank=True, default='', db_index=True)
|
||||
animation_manifest = models.JSONField(default=dict, blank=True)
|
||||
models_manifest = models.JSONField(default=dict, blank=True)
|
||||
logical_manifest = models.JSONField(default=dict, blank=True)
|
||||
created_at = models.DateTimeField(auto_now_add=True)
|
||||
|
||||
class Meta:
|
||||
@@ -277,6 +279,10 @@ class ProjectAsset(models.Model):
|
||||
def is_video(self):
|
||||
return self.file.content_type.startswith('video/')
|
||||
|
||||
@property
|
||||
def is_gif(self):
|
||||
return self.file.content_type == 'image/gif'
|
||||
|
||||
|
||||
class TempUpload(models.Model):
|
||||
"""J621-style draft upload. Stored under media/uploads/user_<id>/<uuid><ext>
|
||||
|
||||
Reference in New Issue
Block a user