Fakultas Ilmu Komputer UI

Commit 2b87f1bc authored by Nabila Fakhirah's avatar Nabila Fakhirah
Browse files

membuat models baru untuk deskripsi diri

parent 7753ebc5
# -*- 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),
),
]
......@@ -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
......
Supports Markdown
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