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
2fd9896c
Commit
2fd9896c
authored
May 31, 2016
by
Clinton Blackburn
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Allowing profile image upload date to be blank (#12601)
parent
42f44848
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
20 additions
and
1 deletions
+20
-1
common/djangoapps/student/migrations/0004_auto_20160531_1422.py
+19
-0
common/djangoapps/student/models.py
+1
-1
No files found.
common/djangoapps/student/migrations/0004_auto_20160531_1422.py
0 → 100644
View file @
2fd9896c
# -*- coding: utf-8 -*-
from
__future__
import
unicode_literals
from
django.db
import
migrations
,
models
class
Migration
(
migrations
.
Migration
):
dependencies
=
[
(
'student'
,
'0003_auto_20160516_0938'
),
]
operations
=
[
migrations
.
AlterField
(
model_name
=
'userprofile'
,
name
=
'profile_image_uploaded_at'
,
field
=
models
.
DateTimeField
(
null
=
True
,
blank
=
True
),
),
]
common/djangoapps/student/models.py
View file @
2fd9896c
...
...
@@ -280,7 +280,7 @@ class UserProfile(models.Model):
goals
=
models
.
TextField
(
blank
=
True
,
null
=
True
)
allow_certificate
=
models
.
BooleanField
(
default
=
1
)
bio
=
models
.
CharField
(
blank
=
True
,
null
=
True
,
max_length
=
3000
,
db_index
=
False
)
profile_image_uploaded_at
=
models
.
DateTimeField
(
null
=
True
)
profile_image_uploaded_at
=
models
.
DateTimeField
(
null
=
True
,
blank
=
True
)
@property
def
has_profile_image
(
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