Adeel Khan
298d3554fe
Fix templates for XSS code injection via translations
...
This would patch all templates (django/mako)
for a possible XSS code injection via
translation files by html escaping them..
LEARNER-4632
2019-06-25 14:22:42 +05:00
Ned Batchelder
b3a731550c
Fix problems that drf-yasg uncovered.
...
These were originally fixed individually, but had to be reverted, and
are now combined in one commit. The originals were:
7b9040f6b0 This enum was backwards
8774ff1f9b Use ref_name to disambiguate serializers that drf-yasg would otherwise assume are the same.
8a44397139 Is this field missing because it is None?
4a1154a7ca Give a safer buffer for clearing the rate limiting
64c47856dd DRF 3.7.4 changed how you delegate to another view, so don't
7359ca4fb2 Is this right? It fixes two tests
fdd66e5390 Adjust the expected error message for DRF 3.7.7
9257f68fd8 The default TIME_ZONE should be UTC
2019-06-21 18:04:15 -04:00
Ned Batchelder
39c7a2db7c
Revert "Use drf-yasg for Open API documentation"
2019-06-11 16:05:00 -04:00
Ned Batchelder
756dd88691
Merge pull request #20393 from edx/nedbat/drf-yasg
...
Use drf-yasg for Open API documentation
2019-06-11 13:58:13 -04:00
edx-pipeline-bot
de5d25eccc
Merge pull request #20794 from edx/private_to_public_55dd3e1
...
Mergeback PR from private to public.
2019-06-11 19:17:13 +05:00
Ned Batchelder
4a1154a7ca
Give a safer buffer for clearing the rate limiting
...
The rate limiter counts requests in a 5-minute window. To be sure we
aren't hitting edge cases, make the future requests 6 minutes plus 1
second in the future.
2019-06-10 15:27:39 -04:00
Nimisha Asthagiri
a8e3624d9f
Merge pull request #20711 from edx/bom/commerce-readme
...
README for commerce and shoppingcart
2019-05-29 14:12:03 -04:00
Nimisha Asthagiri
9e4a98b712
README for commerce and shoppingcart
2019-05-29 03:12:59 -04:00
Nimisha Asthagiri
3eb5783f51
Remove microsites from shoppingcart
...
DEPR-27
2019-05-29 02:23:51 -04:00
Jeremy Bowman
f9929f32b5
Update quality threshold counts ( #20681 )
2019-05-24 08:27:54 -04:00
noraiz-anwar
34cf433588
rate limit requests for password reset emails
2019-05-23 13:29:36 +05:00
Stu Young
5e6c7b9911
INCR-253 Run python-modernize on lms/djangoapps/shoppingcart/management lms/djangoapps/shoppingcart/tests ( #20554 )
...
* run python modernize
* run isort
* Fix quality
2019-05-21 11:46:26 -04:00
Stu Young
caa9fd0009
INCR-254 Run python-modernize on lms/djangoapps/shoppingcart/migrations and lms/djangoapps/shoppingcart/processors ( #20556 )
...
* run python modernize
* run isort
* Fix quality
2019-05-21 11:39:46 -04:00
Calen Pennington
78c8950ea3
Clean up a few remaining unicode format string errors
2019-02-20 15:28:14 -05:00
Jeremy Bowman
974ae50bf4
Merge pull request #19620 from cclauss/new-style-exceptions
...
Old style exceptions --> new style for Python 3
2019-02-19 16:31:35 -05:00
Julia Eskew
368f221f0a
Initial start on annotations.
2019-02-19 11:24:21 -05:00
cclauss
c0c935b685
Old style exceptions --> new style for Python 3
2019-02-19 13:09:23 +01:00
Calen Pennington
8c53ce6493
Merge pull request #19743 from edx/unicode7
...
fix unicode strings in lms/ part 2
2019-02-13 14:15:02 -05:00
Matthew Piatetsky
764319d3e0
fix unicode strings in lms/ part 2
2019-02-13 10:35:56 -05:00
Michael Youngstrom
3221c2b91f
Remove lms pytest shards
2019-02-12 11:03:46 -05:00
cclauss
8fca11b85c
Use print() function in both Python 2 and Python 3
2019-01-13 17:16:37 +01:00
Abdul Mannan
ac81c5ea68
Add revenue field to completed order event
2019-01-04 15:19:58 -05:00
Gabe Mulley
5311509b19
Provide more context to calls to Segment.
...
Implementation for DE-1089.
Centralize the definition of context into a single method. This is in
common/djangoapps/track because the context is originally set there by
middleware.
2018-11-15 20:56:10 -05:00
Feanil Patel
8bcdc65e4c
Remove the cybersource processor that was deprecated in 2014.
2018-09-20 13:54:27 -04:00
Ned Batchelder
93d4af35bd
No need for superstitious kwargs
2018-09-17 17:01:11 -04:00
Jeremy Bowman
1a5bf35357
TE-2689 Remove useless pylint suppressions part 2
2018-08-14 17:39:02 -04:00
Jeremy Bowman
4e8668d3be
TE-2524 Stop using nose.plugins - LMS 2
2018-08-01 13:54:06 -04:00
Ahsan Ulhaq
73857f6039
Added Management command for bulk unenrollment of users
...
LEARNER-5852
2018-07-30 14:26:46 +05:00
Ahsan Ul Haq
c02283b472
Merge pull request #18281 from edx/ahsan/LEARNER-5326-csrf-exempt-on-donations
...
Exempt csrf on donate
2018-06-07 15:02:09 +05:00
Tyler Hallada
1f42d1b384
Merge pull request #18316 from edx/thallada/PLAT-1524-on-delete
...
PLAT-1524: Add on_delete kwarg to ForeignKey & OneToOneFields
2018-06-06 10:38:15 -04:00
Tyler Hallada
1540f9ec72
Add on_delete kwarg to ForeignKey & OneToOneFields
...
Django 2.0 will make this field required for `ForeignKey` and `OneToOneFields`.
In previous versions the option defaulted to `models.CASCADE` when not
specified. This change should make the deprecation warnings in the current
Django version go away.
The migrations where also modified, but the changes should not cause a change in
the database schema since `models.CASCADE` was already the old default.
2018-06-05 17:05:12 -04:00
Eric Fischer
247bb50ed2
s/django.core.urlresolvers/django.urls/g
...
Django 1.10 deprecation fix for Hackathon XIX
Addresses PLAT-1397
2018-06-05 13:59:09 -04:00
Ahsan Ulhaq
e5f0a02db8
Exempt csrf on donate
...
LEARNER-5326
2018-05-31 17:43:20 +05:00
John Eskew
3529e0779f
Add migrations missing from previous PR.
2018-05-14 16:40:17 -04:00
John Eskew
2ef404b83e
Fix two deprecation warnings.
2018-05-14 12:24:36 -04:00
Stuart Young
1fd2167144
rebalance python unittests onto new shards
2018-05-03 11:16:05 -04:00
Eric Fischer
e18448e27d
Silence deprecation warnings
...
https://docs.djangoproject.com/en/1.11/releases/1.10/#using-user-is-authenticated-and-user-is-anonymous-as-methods
2018-05-02 10:03:50 -04:00
Jeremy Bowman
bf86b3da98
PLAT-1942 Handle xmodule_django field deprecations
2018-02-05 15:05:54 -05:00
Jeremy Bowman
5289c7e828
PLAT-1915 Stop using deprecated BaseException.message
2018-01-31 17:22:01 -05:00
Jeremy Bowman
669aa13ad6
PLAT-1873 to_deprecated_string() cleanup part 2
2018-01-08 17:26:55 -05:00
Jeremy Bowman
d3d6272d8f
PLAT-1873 to_deprecated_string() cleanup part 1
2018-01-08 13:51:42 -05:00
Uzair Rasheed
2fcd2830a0
Merge pull request #16993 from edx/LEARNER-3352/GA-event
...
Send student course goal event to GA
2017-12-28 13:59:29 +05:00
John Eskew
523b46962c
Merge pull request #17037 from edx/bmedx/django111_fix_teams_tests
...
Fixes to teams tests in Django 1.9+
2017-12-27 15:03:38 -05:00
bmedx
da0858bbdf
Add fixes for shoppingcart and discussions test failures
2017-12-27 13:42:42 -05:00
uzairr
72c834ed12
Send student course goal event to GA
...
Ensure an event is fired whenever a student updates/creates
its course goal.'edx.course_goal.created' and 'edx.course_goal.updated'
should be sent after creation and updation respectively.
LEARNER-3352
2017-12-27 23:09:30 +05:00
Jeremy Bowman
bd9c7a082e
PLAT-1863 Fixes for LMS shards 2 and 3 tests under Django 1.9
2017-12-22 16:53:01 -05:00
Jeremy Bowman
da8cf6b528
PLAT-1382 Populate ALLOWED_HOSTS for tests
2017-12-05 14:22:30 -05:00
bmedx
ace88e7d5a
Tag LMS Unit 3 tests that fail in Django 1.11
...
Fixed some url reverse errors instead of marking since they were trivial
2017-11-22 15:48:00 -05:00
John Eskew
9292741fdd
Add a proper get_queryset() method to remove _default_manager access.
...
Remove the now-unused custom model manager for coupons.
2017-11-16 22:05:08 -05:00
bmedx
bebdc069a7
LMS urls cleanup for Django 1.11
...
- Remove usage of django.urls.patterns
- Change urls tuples to lists
- Make all string view names callables
- This is the third urls update for LMS
2017-11-07 14:17:54 -05:00