Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
E
edx-platform
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
edx
edx-platform
Commits
7914a009
Commit
7914a009
authored
Jun 12, 2017
by
Saleem Latif
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Show Enterprise Logistration for coupon users
parent
c21b3c8f
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
2 additions
and
1 deletions
+2
-1
lms/envs/common.py
+1
-0
openedx/features/enterprise_support/api.py
+1
-1
No files found.
lms/envs/common.py
View file @
7914a009
...
@@ -3189,6 +3189,7 @@ ENTERPRISE_EXCLUDED_REGISTRATION_FIELDS = {
...
@@ -3189,6 +3189,7 @@ ENTERPRISE_EXCLUDED_REGISTRATION_FIELDS = {
'year_of_birth'
,
'year_of_birth'
,
'mailing_address'
,
'mailing_address'
,
}
}
ENTERPRISE_CUSTOMER_COOKIE_NAME
=
'enterprise_customer_uuid'
############## Settings for Course Enrollment Modes ######################
############## Settings for Course Enrollment Modes ######################
COURSE_ENROLLMENT_MODES
=
{
COURSE_ENROLLMENT_MODES
=
{
...
...
openedx/features/enterprise_support/api.py
View file @
7914a009
...
@@ -248,7 +248,7 @@ def enterprise_customer_for_request(request, tpa_hint=None):
...
@@ -248,7 +248,7 @@ def enterprise_customer_for_request(request, tpa_hint=None):
except
EnterpriseCustomer
.
DoesNotExist
:
except
EnterpriseCustomer
.
DoesNotExist
:
pass
pass
ec_uuid
=
request
.
GET
.
get
(
'enterprise_customer'
)
ec_uuid
=
request
.
GET
.
get
(
'enterprise_customer'
)
or
request
.
COOKIES
.
get
(
settings
.
ENTERPRISE_CUSTOMER_COOKIE_NAME
)
if
not
ec
and
ec_uuid
:
if
not
ec
and
ec_uuid
:
try
:
try
:
ec
=
EnterpriseCustomer
.
objects
.
get
(
uuid
=
ec_uuid
)
ec
=
EnterpriseCustomer
.
objects
.
get
(
uuid
=
ec_uuid
)
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment