working on ordering products by created date
This commit is contained in:
@@ -26,7 +26,7 @@ class ProductTagFilter(django_filters.FilterSet):
|
||||
|
||||
class Meta:
|
||||
model = Product
|
||||
fields = ['name', 'tags', 'category', 'attributes']
|
||||
fields = ['name', 'tags', 'category', 'attributes', 'company', 'created']
|
||||
|
||||
def tag_filter(self, queryset, name, value):
|
||||
return queryset.filter(**{
|
||||
|
||||
Reference in New Issue
Block a user