Page MenuHomeSoftware Heritage

django: Use proper way to return JSON responses
ClosedPublic

Authored by anlambert on Tue, Sep 15, 6:08 PM.

Details

Summary

Let's save some lines of code by using django.http.JsonResponse class.

Diff Detail

Repository
rDWAPPS Web applications
Lint
Automatic diff as part of commit; lint not applicable.
Unit
Automatic diff as part of commit; unit tests not applicable.

Event Timeline

anlambert created this revision.Tue, Sep 15, 6:08 PM
anlambert updated this revision to Diff 13933.Tue, Sep 15, 6:10 PM

Reinstate docstring removed by mistake.

anlambert updated this revision to Diff 13934.Tue, Sep 15, 6:11 PM

Remove empty line

Build is green

Patch application report for D3956 (id=13932)

Rebasing onto 37cd0a8bce...

Current branch diff-target is up to date.
Changes applied before test
commit 1141e0a88e22469ac542dcf86c5aa87a1d9a381f
Author: Antoine Lambert <antoine.lambert@inria.fr>
Date:   Tue Sep 15 18:08:24 2020 +0200

    django: Use proper way to return JSON responses
    
    Let's save some lines of code by using django.http.JsonResponse class.

See https://jenkins.softwareheritage.org/job/DWAPPS/job/tests-on-diff/367/ for more details.

Build is green

Patch application report for D3956 (id=13933)

Rebasing onto 37cd0a8bce...

Current branch diff-target is up to date.
Changes applied before test
commit 7b0c907b0ee3258ccfedbe97278f6557b496e97e
Author: Antoine Lambert <antoine.lambert@inria.fr>
Date:   Tue Sep 15 18:08:24 2020 +0200

    django: Use proper way to return JSON responses
    
    Let's save some lines of code by using django.http.JsonResponse class.

See https://jenkins.softwareheritage.org/job/DWAPPS/job/tests-on-diff/368/ for more details.

Build is green

Patch application report for D3956 (id=13934)

Rebasing onto 37cd0a8bce...

Current branch diff-target is up to date.
Changes applied before test
commit 9a376c04b182571acc9899d0127910ed9e660a6b
Author: Antoine Lambert <antoine.lambert@inria.fr>
Date:   Tue Sep 15 18:08:24 2020 +0200

    django: Use proper way to return JSON responses
    
    Let's save some lines of code by using django.http.JsonResponse class.

See https://jenkins.softwareheritage.org/job/DWAPPS/job/tests-on-diff/369/ for more details.

vlorentz accepted this revision.Wed, Sep 16, 9:23 AM
This revision is now accepted and ready to land.Wed, Sep 16, 9:23 AM

Build is green

Patch application report for D3956 (id=13945)

Rebasing onto 185c2d3a4a...

Current branch diff-target is up to date.
Changes applied before test
commit 9055cd261f01d9cec12e4ebea04faa24b6b60d50
Author: Antoine Lambert <antoine.lambert@inria.fr>
Date:   Tue Sep 15 18:08:24 2020 +0200

    django: Use proper way to return JSON responses
    
    Let's save some lines of code by using django.http.JsonResponse class.

See https://jenkins.softwareheritage.org/job/DWAPPS/job/tests-on-diff/371/ for more details.

This revision was automatically updated to reflect the committed changes.