Commit 2fd9896c by Clinton Blackburn

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

parent 42f44848
# -*- 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),
),
]
......@@ -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):
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment