Beispiel #1
0
 def filter_queryset(self, queryset):
     # Use the same Filter we use for AddonSearchView for consistency.
     guid_filter = AddonGuidQueryParam(self.request)
     guids = guid_filter.get_value()
     if not guids:
         raise exceptions.ParseError(
             'Empty, or no, guid parameter provided.')
     return queryset.filter(guid__in=guids).transform(
         CompatOverride.transformer).order_by('-pk')
Beispiel #2
0
 def filter_queryset(self, queryset):
     # Use the same Filter we use for AddonSearchView for consistency.
     guid_filter = AddonGuidQueryParam(self.request)
     guids = guid_filter.get_value()
     if not guids:
         raise exceptions.ParseError(
             'Empty, or no, guid parameter provided.')
     return queryset.filter(guid__in=guids).transform(
         CompatOverride.transformer).order_by('-pk')
Beispiel #3
0
 def get_guids(self):
     # Use the same Filter we use for AddonSearchView for consistency.
     guid_filter = AddonGuidQueryParam(self.request)
     return guid_filter.get_value()
Beispiel #4
0
 def get_guids(self):
     # Use the same Filter we use for AddonSearchView for consistency.
     guid_filter = AddonGuidQueryParam(self.request)
     return guid_filter.get_value()