Scan files with clamdscan #77

Merged
Anna Sirota merged 17 commits from scan-file into main 2024-04-12 19:11:30 +02:00
Showing only changes of commit 3a1877cb7e - Show all commits

View File

@ -204,10 +204,6 @@ class File(CreatedModifiedMixin, TrackChangesMixin, SoftDeleteMixin, models.Mode
def get_submit_url(self) -> str:
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):
track_changes_to_fields = {'is_ok', 'results'}