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
dc3a4233
Commit
dc3a4233
authored
Jun 19, 2017
by
Douglas Hall
Committed by
GitHub
Jun 19, 2017
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #15293 from edx/saleem-latif/ENT-367
ENT-367: Show Enterprise Logistration for coupon users
parents
d1f4e9b0
7914a009
Hide 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 @
dc3a4233
...
@@ -3176,6 +3176,7 @@ ENTERPRISE_EXCLUDED_REGISTRATION_FIELDS = {
...
@@ -3176,6 +3176,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 @
dc3a4233
...
@@ -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