diff --git a/core/migrations/0014_student_self_description.py b/core/migrations/0014_student_self_description.py new file mode 100644 index 0000000000000000000000000000000000000000..4ab840c09a7a64973b1f05b94ae419157cea7bb4 --- /dev/null +++ b/core/migrations/0014_student_self_description.py @@ -0,0 +1,20 @@ +# -*- coding: utf-8 -*- +# Generated by Django 1.10.5 on 2019-10-06 12:13 +from __future__ import unicode_literals + +from django.db import migrations, models + + +class Migration(migrations.Migration): + + dependencies = [ + ('core', '0013_auto_20170602_1130'), + ] + + operations = [ + migrations.AddField( + model_name='student', + name='self_description', + field=models.CharField(blank=True, db_index=True, max_length=500, null=True), + ), + ] diff --git a/core/models/accounts.py b/core/models/accounts.py index 7361aa328b4681dd1a34025b6a0e324317ca5427..ed3acc66ea15f956168650748d81d95ed72822fc 100644 --- a/core/models/accounts.py +++ b/core/models/accounts.py @@ -64,6 +64,7 @@ class Student(models.Model): major = models.CharField(max_length=30, blank=True, null=True) batch = models.CharField(max_length=4, blank=True, null=True) show_transcript = models.BooleanField(default=False) + self_description = models.CharField(max_length=500, blank=True, db_index=True, null=True) photo = models.FileField(upload_to=get_student_photo_file_path, null=True, blank=True, validators=[validate_image_file_extension]) @property