-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Showing
89 changed files
with
1,902 additions
and
3,730 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,7 @@ | ||
from .config import ConfigAdmin # noqa | ||
from .deduplicationset import DeduplicationSetAdmin # noqa | ||
from .duplicate import DuplicateAdmin # noqa | ||
from .finding import FindingAdmin # noqa | ||
from .hdetoken import HDETokenAdmin # noqa | ||
from .ignored_pair import IgnoredFilenamePairAdmin, IgnoredReferencePkPairAdmin # noqa | ||
from .image import ImageAdmin # noqa | ||
from .jobs import DedupJob # noqa |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,25 @@ | ||
from django.contrib import admin | ||
|
||
from adminfilters.autocomplete import AutoCompleteFilter | ||
from adminfilters.mixin import AdminFiltersMixin | ||
|
||
from hope_dedup_engine.apps.api.models import ( | ||
IgnoredFilenamePair, | ||
IgnoredReferencePkPair, | ||
) | ||
|
||
|
||
class IgnoredPairBaseAdmin(AdminFiltersMixin, admin.ModelAdmin): | ||
list_display = ("id", "first", "second", "deduplication_set") | ||
list_filter = (("deduplication_set", AutoCompleteFilter),) | ||
search_fields = ("first", "second") | ||
|
||
|
||
@admin.register(IgnoredReferencePkPair) | ||
class IgnoredReferencePkPairAdmin(IgnoredPairBaseAdmin): | ||
pass | ||
|
||
|
||
@admin.register(IgnoredFilenamePair) | ||
class IgnoredFilenamePairAdmin(IgnoredPairBaseAdmin): | ||
pass |
72 changes: 0 additions & 72 deletions
72
src/hope_dedup_engine/apps/api/config_settings_schema.json
This file was deleted.
Oops, something went wrong.
Oops, something went wrong.