Ejemplo n.º 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')
Ejemplo n.º 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')
Ejemplo n.º 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()
Ejemplo n.º 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()