-
Notifications
You must be signed in to change notification settings - Fork 5.3k
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
Drop django rest framework usage #1121
Conversation
Please regenerate the requirements file using Python 3 😄 |
c129b71
to
0ef0a5b
Compare
Codecov Report
@@ Coverage Diff @@
## master #1121 +/- ##
==========================================
+ Coverage 68.51% 68.63% +0.11%
==========================================
Files 114 113 -1
Lines 6133 6140 +7
Branches 747 751 +4
==========================================
+ Hits 4202 4214 +12
+ Misses 1760 1754 -6
- Partials 171 172 +1
Continue to review full report at Codecov.
|
saleor/dashboard/product/views.py
Outdated
@staff_member_required | ||
def ajax_reorder_product_images(request, product_pk): | ||
product = get_object_or_404(Product, pk=product_pk) | ||
data = json.loads(request.body) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think we could use custom form that would accept one field with comma separated integers. Then you could move this whole logic there and keep the view simple.
closes #1119