Feanil Patel
046feb0cf0
Merge pull request #22649 from edx/feanil/fix_pep8
...
Fix all E303 pep8 errors.
2019-12-30 13:32:26 -05:00
Feanil Patel
6e3fe00fff
Fix all E303 pep8 errors.
2019-12-30 12:25:38 -05:00
Feanil Patel
2df8b8226b
Merge pull request #22643 from edx/feanil/2to3_asserts
...
Run `2to3 -f asserts . -w` on edx-platform.
2019-12-30 12:13:42 -05:00
Feanil Patel
9cf2f9f298
Run 2to3 -f future . -w
...
This will remove imports from __future__ that are no longer needed.
https://docs.python.org/3.5/library/2to3.html#2to3fixer-future
2019-12-30 10:35:30 -05:00
Feanil Patel
70294b0ad2
Run 2to3 -f asserts . -w on edx-platform.
...
https://docs.python.org/3.5/library/2to3.html#2to3fixer-asserts
2019-12-30 10:22:19 -05:00
Manjinder Singh
80c7f5af01
BOM-933: Fix type mismatches in various migrations 5 ( #22147 )
...
* fix type mismatch in third_party_auth migrations
* fix type mismatch in verify_student migrations
* fix type mismatch in video_config migrations
* fix type mismatch in verified_track_content migrations
* fix type mismatch in commercemigrations
* fix type mismatch in xblock_config migrations
* fix type mismatch in course_creators migrations
* fix type mismatch in contentstore migrations
2019-10-24 16:08:04 -04:00
Ayub khan
5c47a3b425
BOM Project
...
Updated __unicode__ to __str__
2019-09-25 18:31:54 +05:00
Ayub khan
15a89ee0ce
python 3 compatibility
2019-07-09 12:51:38 +05:00
Jillian Vogel
22ebf0e16f
Strings used in models should always use gettext_lazy.
...
Otherwise, they generate false migrations when languages other than
English are used as the default.
2019-06-04 18:48:46 +09:30
Julia Eskew
368f221f0a
Initial start on annotations.
2019-02-19 11:24:21 -05:00
Matthew Piatetsky
7df30938c4
fix unicode strings in cms/
2019-02-04 13:01:51 -05:00
Michael Youngstrom
f4dc2ca000
Merge pull request #18314 from edx/youngstrom/remove_django_18_shim
...
Remove temp django upgrade logic
2018-06-06 11:09:17 -04: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
Michael Youngstrom
26b4e30833
Remove django 1.8 shim
2018-06-06 10:34:56 -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
bmedx
46cb89e55d
Fixes to CMS failures in Django 1.11 tests
2018-01-23 14:11:06 -05:00
bmedx
48e6e552f2
PLAT-1633: Upgrade django-ratelimit-backend to 1.1.1
2017-08-07 15:34:21 -04:00
Andy Armstrong
ebb04ca396
Reorder Studio imports using isort
2017-05-30 17:00:50 -04:00
Ned Batchelder
8b1978ba6c
Fix unused-import errors
2016-08-03 12:44:41 -04:00
Calen Pennington
fc1e0b6637
Use the Django TestClient for course_creator unit tests, so that middleware is cleaned up properly
2016-06-08 16:43:31 -04:00
Usman Khalid
6cb62f2697
Rebase upgrade Django to v1.8.5
...
Please note that this is a squshed commit and the work of:
Symbolist, macdiesel, nedbat, doctoryes, muzaffaryousaf and muhammad-ammar
2015-11-10 15:00:19 -05:00
tlindaliu
0c837adfce
Refactor auth.has_access to auth.user_has_role
...
Change name of method to clear up confusion with the access.has_access method.
2015-07-19 20:42:29 -04:00
Adam
2735b2b5bb
Revert "Decorated instructor dashboard with sudo_required."
2015-07-17 12:11:38 -04:00
Waheed Ahmed
bc052db1ee
Added DjangoSudo functionality for instructor dashboard and course team page
2015-07-16 11:14:11 +05:00
Ned Batchelder
78e9445aa1
Add super() calls to setUp/tearDown that are missing them
...
Also, I replaced a number of tearDown methods with addCleanup instead.
And also remove some unneeded patch.stopall() calls.
2015-05-14 18:14:21 -04:00
Ned Batchelder
777be12ada
Add missing __init__.py files
2015-04-30 07:43:08 -04:00
Sarina Canelake
0dad9da5e4
s/pylint: disable=W0621/pylint: disable=redefined-outer-name/
2014-12-01 11:22:08 -05:00
Waheed Ahmed
05b87fd99b
Implemented process_response method to clear requestcontext global variable in mako middleware.
...
LMS-6622
2014-08-06 19:58:20 +05:00
Don Mitchell
3ebac80778
Replace authz fns with roles.py ones
...
STUD-1006
2014-01-14 17:04:44 -05:00
David Baumgold
f3f4af8087
settings.MITX_FEATURES => settings.FEATURES
2013-12-03 15:34:55 -05:00
David Baumgold
8eff442752
mitxmako => edxmako
2013-12-03 14:15:09 -05:00
cahrens
e6f15bf611
Send notification to admin when a user enters 'pending' state.
...
Also fixes a bug where message was not sent to user when entering 'denied'
state unless the user was previously in 'granted'.
Send notification to admin when a user enters 'pending' state.
Pylint cleanup.
2013-08-06 16:26:33 -04:00
cahrens
55f2cbc92f
Split up event notification, make sorting on username work.
2013-08-06 15:58:55 -04:00
Diana Huang
c867be7961
Limit the rate of logins.
2013-08-02 11:23:59 -04:00
cahrens
23894d20f8
E-mail notifications to users when course creator status changes.
2013-07-29 09:49:37 -04:00
cahrens
60d60de2c4
Use format for strings instead of %.
2013-07-25 12:21:17 -04:00
cahrens
5168a080ff
Don't add users marked with is_staff to course creation table.
2013-07-22 14:45:22 -04:00
cahrens
4ecceb292e
Add tests for changing table status without staff permissions.
2013-07-12 09:30:36 -04:00
cahrens
9b2c384666
Add post callback to request course creator status.
2013-07-11 13:53:56 -04:00
cahrens
135d10d4c5
Fix unicode return value.
2013-07-10 17:26:55 -04:00
cahrens
f911c96dcb
Pass course_creator_status to index.html.
2013-07-10 16:19:49 -04:00
cahrens
1fd0451124
pylint cleanup
2013-07-09 14:33:27 -04:00
cahrens
ee2d874fdc
Remove extra blank lines.
2013-07-09 13:12:15 -04:00
cahrens
283e2b2e60
Don't store abbreviations for state.
2013-07-09 13:07:38 -04:00
cahrens
01557b26be
Move call into authz methods out of model class.
2013-07-09 12:47:54 -04:00
cahrens
99584aab23
pep8 cleanup
2013-07-09 11:08:27 -04:00
cahrens
6a49980582
Add tests for permissions.
2013-07-09 11:02:59 -04:00
cahrens
5cd90d58f5
Clarify documentation.
2013-07-09 10:33:37 -04:00
cahrens
5a3a03c0d4
Change user to foreign key (tracks deletions).
2013-07-09 10:23:38 -04:00