Fakultas Ilmu Komputer UI
Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
PMPL
Class Project
Kape
Commits
2b87f1bc
Commit
2b87f1bc
authored
Oct 06, 2019
by
Nabila Fakhirah
Browse files
membuat models baru untuk deskripsi diri
parent
7753ebc5
Changes
2
Hide whitespace changes
Inline
Side-by-side
core/migrations/0014_student_self_description.py
0 → 100644
View file @
2b87f1bc
# -*- 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
),
),
]
core/models/accounts.py
View file @
2b87f1bc
...
...
@@ -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
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment