Allowing profile image upload date to be blank (#12601)

This commit is contained in:
Clinton Blackburn
2016-05-31 16:46:11 -04:00
parent 42f44848e5
commit 2fd9896ca1
2 changed files with 20 additions and 1 deletions

View File

@@ -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),
),
]

View File

@@ -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):