Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Feature/filters product list #80

Merged
merged 15 commits into from
Feb 28, 2024
Merged

Feature/filters product list #80

merged 15 commits into from
Feb 28, 2024

Conversation

Pawelooo
Copy link
Contributor

I created a search for products only on active ones. I don't know if it's not enough to search for not active products ?
At Orderingfilter, he returns Z-A products first and not the A-Z product first
A-Z product
Product with Z-A and next Product A-Z

@Pawelooo Pawelooo requested a review from jacoor February 14, 2024 19:55

def __init__(self, *args, **kwargs):
super(ProductFilter, self).__init__(*args, **kwargs)
self.filters['name'].label = 'Nazwa produktu'
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Not sure if those are needed. labels already defined here:

field_labels={
            'price': 'Cena rosnąco',
            '-price': 'Cena malejąco',
            '-name': 'Produkt A-Z',
            'name': 'Produkt Z-A',
            'created_at': 'Najnowsze',
            '-created_at': 'Najstarsze',
        },

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I don't know if it's okay either, but I need the eye of an experienced programmer @jacoor

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Ha. I don't know :-)
You need to experiment with it and see if it works as intended or is needed.
That's what I would do.

@yanazPL
Copy link
Contributor

yanazPL commented Feb 18, 2024

I just added the newest, the oldest product order filters.

Also availability filters have been added.

Tests of ProductListView left for you @Pawelooo
I'll write some for API view.

@jacoor
Copy link
Contributor

jacoor commented Feb 19, 2024

@Pawelooo you need to update from dev.

@jacoor
Copy link
Contributor

jacoor commented Feb 26, 2024

I updated branch from dev, so pull.




# @pytest.mark.django_db
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please remove those comments

@jacoor
Copy link
Contributor

jacoor commented Feb 26, 2024

@Pawelooo
Copy link
Contributor Author

@jacoor updated

@Pawelooo Pawelooo merged commit 9e3428d into dev Feb 28, 2024
2 checks passed
@Pawelooo Pawelooo deleted the feature/filters-product-list branch February 28, 2024 10:40
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants