creation_timestamp = models.DateTimeField(auto_now_add=True, null=True)
added_to_nonstop_timestamp = models.DateTimeField(null=True)
uploader = models.ForeignKey(settings.AUTH_USER_MODEL, null=True)
+ duration = models.DurationField(_('Duration'), null=True)
class Meta:
ordering = ['creation_timestamp']
self.filename = os.path.basename(filepath)
def get_local_filepath(self):
+ if not self.short:
+ return None
return os.path.join(LOCAL_BASE_PATH, self.short)