Commit Graph

54964 Commits

Author SHA1 Message Date
Daniel Francis
4dc3251af5 render_to_response deprecated in Django 3 (#24141)
Fixing RemovedInDjango30Warnings

**Background:** The `django.shortcuts` method `render_to_response` became deprecated in [Django 1.3](https://docs.djangoproject.com/en/3.0/releases/1.3/), when  `render` was introduced.

Per the documentation:

> render() is the same as a call to render_to_response() with a context_instance argument that forces the use of a RequestContext.

Both return an `HttpResponse` object.

**Context:** We changed two statements: An import line and the call to the method, adding explicit parameter names to improve readability.

**Before:**
```
from django.shortcuts import get_object_or_404, render_to_response
...
return render_to_response("teams/teams.html", context)


```

**After**
```
from django.shortcuts import get_object_or_404, render
...
return render(
            request=request,
            template_name="teams/teams.html",
            context=context
        )

```
2020-06-10 14:25:04 -04:00
Jeremy Bowman
a36332858d Remove bok-choy shoppingcart tests DEPR-43 (#24182)
Removed the FakePaymentPage page object which used shoppingcart app functionality, as well as everything that depended on it. I checked the e2e test repo also, and it doesn't seem to need any of the removed code.
2020-06-10 14:13:40 -04:00
Luis Moreno
070eb3807d Remove unused URL. 2020-06-10 13:59:21 -04:00
SaadYousaf
d7155825e9 PROD-1569 2020-06-10 21:07:10 +05:00
SaadYousaf
2339fa4f6d PROD-1570 2020-06-10 21:07:10 +05:00
SaadYousaf
190df56572 PROD-1464 2020-06-10 21:07:10 +05:00
Ali-D-Akbar
0ecbe873d9 PROD-1574 2020-06-10 21:07:10 +05:00
Awais Qureshi
462cee266d Merge pull request #24191 from edx/fixing-comment
Updating the comment.
2020-06-10 19:39:13 +05:00
Robert Raposa
b721e186f3 ARCHBOM-1263: enhance code owner middleware (#24184)
* conservative move to process_request
* added temp_view_func_compare metric to be extra conservative

ARCHBOM-1263
2020-06-10 10:36:13 -04:00
Nathan Sprenkle
44b0d832a0 Scope team search to course when removing from team (#24174) 2020-06-10 10:03:27 -04:00
Awais Qureshi
ffe69a5b43 Updating the comment. 2020-06-10 17:57:45 +05:00
Awais Qureshi
28f2dc46e5 Merge pull request #24091 from edx/awais786/enmerkar
rename djang-babel to enmarker
2020-06-10 17:50:41 +05:00
Ali-D-Akbar
c9e24e9a1d PROD-1572 2020-06-10 15:05:28 +05:00
Ali-D-Akbar
c2832dfb61 PROD-1571 2020-06-10 15:04:45 +05:00
adeelehsan
d879f9fd00 Merge pull request #23980 from edx/aehsan/PROD-1582/specify_user_message_for_about_me_in_profile
Specify bio field error message for user
2020-06-10 14:46:04 +05:00
Ali-D-Akbar
a02392d48a PROD-1282 2020-06-10 14:40:58 +05:00
SaadYousaf
4fb5e7692f PROD-1256 2020-06-10 14:40:58 +05:00
SaadYousaf
33543bb914 PROD-1258 2020-06-10 14:40:58 +05:00
SaadYousaf
684be2382e PROD-1284 2020-06-10 14:40:58 +05:00
SaadYousaf
028c6e1d56 PROD-1255 2020-06-10 14:40:58 +05:00
Ali-D-Akbar
d3a9895f82 PROD-1283 2020-06-10 14:40:58 +05:00
Ali-D-Akbar
26f4b0f54b PROD-1280 2020-06-10 14:40:58 +05:00
Ali-D-Akbar
e883636cbc PROD-1288 2020-06-10 14:40:58 +05:00
Ali-D-Akbar
7470a9d447 PROD-1285 2020-06-10 14:40:58 +05:00
Ali-D-Akbar
3573e23c4e PROD-1281 2020-06-10 14:40:58 +05:00
adeel khan
76419f9d01 Merge pull request #23913 from edx/adeel/prod_1505_improve_security_lockouts_logic
Improving user locked out logic.
2020-06-10 14:21:16 +05:00
adeelehsan
4e1fe2045f Specify bio message for user
Currently user message is generic. Specifying for
bio field so that it make more sense to user.

PROD-1582
2020-06-10 14:19:39 +05:00
Waheed Ahmed
6b268c37b4 Rate limit logistration endpoints.
PROD-1506
2020-06-10 13:33:26 +05:00
Diana Huang
86b82efbaf Merge pull request #23972 from edx/diana/remove-shoppingcart-references
Remove shoppingcart references from verify_student and instructor.
2020-06-09 13:51:15 -04:00
bom
77fa87d8d3 Make Upgrade 2020-06-09 22:50:10 +05:00
Diana Huang
cd79f2032f Remove additional templates not needed. 2020-06-09 13:26:22 -04:00
Diana Huang
c7bd5a8a15 Remove more references to fix tests. 2020-06-09 13:06:44 -04:00
Diana Huang
a0f24bbb64 Remove shoppingcart references from instructor. 2020-06-09 13:06:44 -04:00
Diana Huang
61563697c7 Remove shoppingcart references from verify_student. 2020-06-09 13:06:44 -04:00
Awais Qureshi
4e84d435c1 BOM-1637
rename djang-babel to enmarker
upgrade the reqs
2020-06-09 21:52:54 +05:00
Michael Terry
b9482a8d1b Merge pull request #24180 from edx/mikix/guard-highlights
PROD-1633: fix highlights error case
2020-06-09 12:09:19 -04:00
Michael Terry
c520fe8f19 PROD-1633: fix highlights error case
When calculating course highlights, if we didn't manage to get
a course module, we were previously throwing an exception.
Handle that more gracefully.
2020-06-09 11:05:02 -04:00
M. Zulqarnain
8d4e71957c Merge pull request #24179 from edx/bom-1691
BOM-1691 : Update openedx-calc and chem packages
2020-06-09 19:48:55 +05:00
Robert Raposa
4d30876d06 ARCHBOM-1263: refactor ownership mapping from middleware (#24175)
- move ownership mapping code to separate module
- simplify `__module__` mocking.

ARCHBOM-1263
2020-06-09 09:59:37 -04:00
Zulqarnain
ac412c9dc9 update dependencies in sandbox 2020-06-09 18:50:03 +05:00
Robert Raposa
03032d4979 ARCHBOM-1247: ownership mapping for external apps (#24148)
- add clean script to help list unmapped Django apps.
- use clean script to source new app mappings.
- update generate script to include 3rd-party app ownership.

ARCHBOM-1247
2020-06-09 09:15:16 -04:00
Feanil Patel
d58914fca0 Merge pull request #24171 from edx/feanil/update-sandbox-reqs-2
Feanil/update sandbox reqs 2
2020-06-09 08:59:22 -04:00
Adeel Khan
2383fb3fa6 Improving user locked out logic.
This patch improves on the user locked
out logic by providing a helping message
near locked out. This would help reduce
retries by giving user the option to use
password reset flow to fix the issue.

PROD-1505
2020-06-09 09:36:42 +05:00
adeel khan
adc405ae5c Merge pull request #24065 from edx/adeel/prod_1363_fix_key_error
Fix key error.
2020-06-09 08:31:50 +05:00
David Ormsbee
7bf8387b6c Merge pull request #24172 from edx/revert-23265-guruprasad/BB-112-fix-randomized-content-block-order
Revert "[BB-112] Fix the unpredictable order randomization issue with randomized content blocks"
2020-06-08 17:35:13 -04:00
M. Zulqarnain
8c16a93cf6 install lti-consumer-xblock from pypi (#24167) 2020-06-09 02:26:14 +05:00
David Ormsbee
4f3a45f444 Revert "[BB-112] Fix the unpredictable order randomization issue with randomized content blocks" 2020-06-08 16:47:35 -04:00
Feanil Patel
278b747918 Don't fail to provision if we can't find the revision_config_file. 2020-06-08 16:21:30 -04:00
Feanil Patel
f182c77092 Upgrade and constrain things for python 3.
sympy needs to be at a newer version for python3.
2020-06-08 16:21:30 -04:00
edX cache uploader bot
35cf1b6ea0 Updating Bokchoy testing database cache (#24139) 2020-06-08 15:55:37 -04:00