From 2fd9896ca1bf6e55e207cc225c78d01ab4269b48 Mon Sep 17 00:00:00 2001 From: Clinton Blackburn Date: Tue, 31 May 2016 16:46:11 -0400 Subject: [PATCH] Allowing profile image upload date to be blank (#12601) --- .../migrations/0004_auto_20160531_1422.py | 19 +++++++++++++++++++ common/djangoapps/student/models.py | 2 +- 2 files changed, 20 insertions(+), 1 deletion(-) create mode 100644 common/djangoapps/student/migrations/0004_auto_20160531_1422.py diff --git a/common/djangoapps/student/migrations/0004_auto_20160531_1422.py b/common/djangoapps/student/migrations/0004_auto_20160531_1422.py new file mode 100644 index 0000000000..7163cb5f22 --- /dev/null +++ b/common/djangoapps/student/migrations/0004_auto_20160531_1422.py @@ -0,0 +1,19 @@ +# -*- 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), + ), + ] diff --git a/common/djangoapps/student/models.py b/common/djangoapps/student/models.py index 0b45b83d5b..80d3c535c1 100644 --- a/common/djangoapps/student/models.py +++ b/common/djangoapps/student/models.py @@ -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):