Add CHANGELOG and docstring
@@ -219,6 +219,10 @@ class PackageQuerySet(BaseQuerySet, PackageURLQuerySet):
def get_purl_query_lookups(purl):
+ """
+ Do not reference all the possible qualifiers and relax the
+ purl matching to only lookup the type, namespace, name and version fields.
+ """
lookup_fields = ["type", "namespace", "name", "version"]
return {
field_name: value
