diff --git a/archivebox/builtin_plugins/singlefile/migrations/0001_initial.py b/archivebox/builtin_plugins/singlefile/migrations/0001_initial.py new file mode 100644 index 00000000..74ef955c --- /dev/null +++ b/archivebox/builtin_plugins/singlefile/migrations/0001_initial.py @@ -0,0 +1,26 @@ +# Generated by Django 5.1.1 on 2024-09-10 05:05 + +from django.db import migrations + + +class Migration(migrations.Migration): + + initial = True + + dependencies = [ + ('core', '0074_alter_snapshot_downloaded_at'), + ] + + operations = [ + migrations.CreateModel( + name='SinglefileResult', + fields=[ + ], + options={ + 'proxy': True, + 'indexes': [], + 'constraints': [], + }, + bases=('core.archiveresult',), + ), + ] diff --git a/archivebox/builtin_plugins/singlefile/migrations/__init__.py b/archivebox/builtin_plugins/singlefile/migrations/__init__.py new file mode 100644 index 00000000..e69de29b diff --git a/archivebox/builtin_plugins/singlefile/models.py b/archivebox/builtin_plugins/singlefile/models.py new file mode 100644 index 00000000..7e5cd41f --- /dev/null +++ b/archivebox/builtin_plugins/singlefile/models.py @@ -0,0 +1,14 @@ +from django.db import models + +from core.models import ArchiveResult + +class SinglefileResultManager(models.Manager): + def get_queryset(self): + return super().get_queryset().filter(extractor='singlefile') + + +class SinglefileResult(ArchiveResult): + objects = SinglefileResultManager() + + class Meta: + proxy = True