igorsimb / mp-monitor

Django app for scraping Wildberries
1 stars 0 forks source link

Override `get_queryset` of `Item` model to return only items belonging to user #100

Closed igorsimb closed 5 months ago

igorsimb commented 5 months ago

Docs: https://docs.djangoproject.com/en/5.0/topics/db/managers/#modifying-a-manager-s-initial-queryset

Is this a good way of handling the items queryset?

igorsimb commented 5 months ago

Fixed in https://github.com/igorsimb/mp-monitor/pull/106 by overriding get_queryset method in both ItemListViewand ItemDetailView