Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
C
course-discovery
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
course-discovery
Commits
79501940
Commit
79501940
authored
May 10, 2016
by
Peter Fogg
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #100 from edx/peter-fogg/add-referral-help-text
Add referral help text.
parents
06413ad4
1b4fefdb
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
20 additions
and
1 deletions
+20
-1
course_discovery/apps/core/migrations/0007_auto_20160510_2017.py
+19
-0
course_discovery/apps/core/models.py
+1
-1
No files found.
course_discovery/apps/core/migrations/0007_auto_20160510_2017.py
0 → 100644
View file @
79501940
# -*- coding: utf-8 -*-
from
__future__
import
unicode_literals
from
django.db
import
migrations
,
models
class
Migration
(
migrations
.
Migration
):
dependencies
=
[
(
'core'
,
'0006_user_referral_tracking_id'
),
]
operations
=
[
migrations
.
AlterField
(
model_name
=
'user'
,
name
=
'referral_tracking_id'
,
field
=
models
.
CharField
(
max_length
=
255
,
verbose_name
=
'Referral Tracking ID'
,
default
=
'affiliate_partner'
),
),
]
course_discovery/apps/core/models.py
View file @
79501940
...
...
@@ -9,7 +9,7 @@ from guardian.mixins import GuardianUserMixin
class
User
(
GuardianUserMixin
,
AbstractUser
):
"""Custom user model for use with OpenID Connect."""
full_name
=
models
.
CharField
(
_
(
'Full Name'
),
max_length
=
255
,
blank
=
True
,
null
=
True
)
referral_tracking_id
=
models
.
CharField
(
_
(
''
),
max_length
=
255
,
default
=
'affiliate_partner'
)
referral_tracking_id
=
models
.
CharField
(
_
(
'
Referral Tracking ID
'
),
max_length
=
255
,
default
=
'affiliate_partner'
)
@property
def
access_token
(
self
):
...
...
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