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

Drop django rest framework usage #1121

Merged
merged 7 commits into from
Sep 28, 2017
Merged

Conversation

mad-anne
Copy link
Contributor

closes #1119

@patrys
Copy link
Member

patrys commented Sep 15, 2017

Please regenerate the requirements file using Python 3 😄

@codecov-io
Copy link

codecov-io commented Sep 25, 2017

Codecov Report

Merging #1121 into master will increase coverage by 0.11%.
The diff coverage is 71.69%.

Impacted file tree graph

@@            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
Impacted Files Coverage Δ
saleor/settings.py 86.95% <ø> (ø) ⬆️
saleor/dashboard/product/urls.py 100% <ø> (ø) ⬆️
saleor/dashboard/product/views.py 61.09% <56%> (-0.55%) ⬇️
saleor/dashboard/product/forms.py 78.67% <85.71%> (+0.95%) ⬆️
saleor/product/models.py 89.27% <0%> (+0.34%) ⬆️
saleor/core/utils/random_data.py 81.57% <0%> (+0.37%) ⬆️

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update f9f574f...c2f9eb4. Read the comment docs.

@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)
Copy link
Member

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.

@maarcingebala maarcingebala merged commit 0ef2ed6 into saleor:master Sep 28, 2017
@mad-anne mad-anne deleted the drop-drf branch January 8, 2018 09:04
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Drop Django Rest Framework
4 participants