Scan files with clamdscan #77
@ -204,10 +204,6 @@ class File(CreatedModifiedMixin, TrackChangesMixin, SoftDeleteMixin, models.Mode
|
|||||||
def get_submit_url(self) -> str:
|
def get_submit_url(self) -> str:
|
||||||
return self.extension.get_draft_url()
|
return self.extension.get_draft_url()
|
||||||
|
|
||||||
@property
|
|
||||||
def is_ok(self):
|
|
||||||
return self.validation.is_ok if hasattr(self, 'validation') else None
|
|
||||||
|
|
||||||
|
|
||||||
class FileValidation(CreatedModifiedMixin, TrackChangesMixin, models.Model):
|
class FileValidation(CreatedModifiedMixin, TrackChangesMixin, models.Model):
|
||||||
track_changes_to_fields = {'is_ok', 'results'}
|
track_changes_to_fields = {'is_ok', 'results'}
|
||||||
|
Loading…
Reference in New Issue
Block a user