mirror of
https://github.com/ArchiveBox/ArchiveBox.git
synced 2025-05-15 07:34:27 -04:00
add proxy model for SinglefileResult wrapping ArchiveResult
This commit is contained in:
parent
04cb6bdfd6
commit
8d1d5df43a
3 changed files with 40 additions and 0 deletions
14
archivebox/builtin_plugins/singlefile/models.py
Normal file
14
archivebox/builtin_plugins/singlefile/models.py
Normal file
|
@ -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
|
Loading…
Add table
Add a link
Reference in a new issue